Mac App Storyboard - Access Document in NSViewController
问题 I am currently fighting with NSDocument in a document based Storyboard based Cocoa Application (Objective C). Can anybody tell me how i can access the document in the NSViewController subclass? I've tried to access it the following way - but the document is null: [self.view.window.windowController document]; Thanks for your help! Best regards Martin 回答1: I was just wrestling with this myself. I started with the standard Yosemite template and was trying to use [self.view.window