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 UIDocument and 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 ...

Get Learning iCloud Data Management: A Hands-On Guide to Structuring Data for iOS and OS X now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.