16. Working with OS X Documents
This chapter looks at OS X document–based apps: that is, apps with a document that is managed as a subclass of
NSDocument that you create for your specific needs. Just as with
UIDocument on iOS,
NSDocument takes care of a lot of overhead for you. You wind up writing just the code that differentiates your document from documents in other apps for a very efficient design and development cycle.
That said, it is important to note that although
NSDocument have similar roles to play, they are not interchangeable. Many of the differences are due to the major contrasts in OS X, including the presence (or absence) of a menu bar and a tool such as the OS X Finder, which lets users manage files directly. In ...