How do I use a subclass of NSDocumentController in XCode 4?

前端 未结 7 1435
陌清茗
陌清茗 2020-12-31 11:34

I am currently in the process of trying to teach myself Cocoa development. Toward this end, I purchased a mostly-excellent book, Cocoa Recipes for Mac OS X: Vermont Reci

相关标签:
7条回答
  • 2020-12-31 12:08

    You can subclass easily in Swift 3:

    class AppDelegate: NSObject {
        let docController = DocController()
    }
    
    class DocController: NSDocumentController {
    }
    
    0 讨论(0)
提交回复
热议问题