O'Reilly logo

Learning iCloud Data Management: A Hands-On Guide to Structuring Data for iOS and OS X by Jesse Feiler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required