blog icon indicating copy to clipboard operation
blog copied to clipboard

How to create document based macOS app

Open onmyway133 opened this issue 2 years ago • 0 comments

Read newDocument

This method calls openUntitledDocumentAndDisplay(_:).

Read openUntitledDocumentAndDisplay

The default implementation of this method calls defaultType to determine the type of new document to create, calls makeUntitledDocument(ofType:) to create it, then calls addDocument(_:) to record its opening.

Read defaultType

The default implementation of this method returns the first Editor type declared by the CFBundleDocumentTypes array in the application's Info.plist, or returns nil if no Editor type is declared. You can override it to customize the type of document that is created when, for instance, the user chooses New in the File menu.

Read more

  • https://talk.objc.io/episodes/S01E145-setting-up-a-document-based-app

onmyway133 avatar Mar 19 '22 12:03 onmyway133