Reputation: 492
I've created a new Cocoa app in XCode 6.2
. It has only the AppDelegate.m/.h
files, Info.plist
and MainMenu.xib
. What is the default NSViewController?
I need to be able to grab the view controller's instance from code, but I can't find the instance...
Thank you!
Upvotes: 1
Views: 93
Reputation: 7731
There is no default NSViewController in that case. The defaults provide you with a blank window only. You will have to create one yourself. Here is one example of how people do it.
Upvotes: 1