Xcode 10, macOS 13.5, Swift 4.2 Without wanting to delve too deep into the NSDocumentController class: It’s part of the document architecture, and if your app uses more than one NSDocument subclass, you will need to override the following method: override func makeUntitledDocument(ofType typeName: String) throws -> NSDocument { switch typeName { case “ThingB”: return […]
Jan 13 2019
NSDocumentController basics
Xcode 10, macOS 13.5, Swift 4.2 Without wanting to delve too deep into the NSDocumentController class: It’s part of the document architecture, and if your app uses more than one NSDocument subclass, you will need to override the following method: override func makeUntitledDocument(ofType typeName: String) throws -> NSDocument { switch typeName { case “ThingB”: return […]
By Extelligent Cocoa • File Handling, Wiki • • Tags: AppDelegate, NSDocumentController, singletons