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