September 2002
Intermediate to advanced
1272 pages
31h 12m
English
The NSApplication class is the primary interface between Cocoa applications and the operating system. Each Cocoa application has exactly one instance of the NSApplication class. NSApplication is seldom subclassed. It provides delegate methods and notifications that enable customization of application behavior without the need to subclass.
To show how NSApplication’s delegate methods are used, the MYDocumentManager class is created. An instance of MYDocumentManager is the application’s delegate in the new Image Viewer application and manages open documents. MYDocumentManager also allows review and saving of unsaved documents when the application quits.
The MYDocumentManager class needs to know ...
Read now
Unlock full access