Reputation: 540
Apple makes the point that I will rarely need to subclass NSDocumentController. OK, but I expected to see it somewhere in the project produced from the document based application template. Is it in the project, but Apple has "helpfully" hidden it? Is there something i'm missing there?
Thanks
Upvotes: 2
Views: 163
Reputation: 540
According to this link there is a default NSDocumentController:
Other sources indicate that the first document controller created becomes the default. Presumably, a document controller inited and allocated in the application delegate would become the default and any hidden attempt to create one would happen later and would be ignored. In this way one could add one's own document controller.
This is probably explicitly explained somewhere, and I missed it. Sigh!
Upvotes: 1
Reputation: 15861
If you've created a Document-based application, you can find NSDocumentController.h in
Frameworks->AppKit.
The easiest way to find this is to put this line of code
NSDocumentController* controller;
Into a .m file, and right-click->Jump To Definition on the NSDocumentController
part.
Upvotes: 0