I'm trying to understand what the "App Controller" is in a document based application. Apple doesn't mention it here. In the book I'm reading (Cocoa Programming for Mac OS X fourth edition), the author creates an app controller for handling a NSWindowController
subclass that acts as a prefernce window. The app controller is a direct subclass of NSObject
, so it appears that this isn't some standard Cocoa class.
Is this what app controller does? Handling shared windows in a document based application? Does it do something else?
[The AppController] is responsible for setting up all of the initial view controllers, the window and serving as the handler for OS<->Application messages.
This is taken from an answer to a similar question here.