Multidocument Applications

Applications that enable users to open and manipulate multiple documents simultaneously are very common. Examples of multidocument applications include word processors, spreadsheets, and drawing programs. Because multidocument applications are so common, the Application Kit contains classes that automate most of the work needed to manage multiple documents simultaneously.

The following five classes interoperate to aid in the implementation of multidocument applications: NSApplication, NSDocumentController, NSDocument, NSWindowController, and NSFileWrapper. Every application contains an instance of NSApplication, but the other classes are strictly optional. NSDocumentController, NSDocument, NSWindowController, and ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.