Chapter 12Dynamic Parameters

If you have a document-style application, you’ll need to work with document-specific parameters or settings. For example, in a word processor, some settings are specific to one document, and some settings apply to the entire application. We have access to a great implementation for storing application-level parameters: NSUserDefaults. However, there’s no reusable storage system for document-level parameters provided by the APIs. In this chapter, we’ll build that reusable storage system within Core Data.

System-level and user-level preferences are extremely useful and easy to access on OS X. One call to standardDefaults on NSUserDefaults from anywhere in the application instantly gives you access to the defaults ...

Get Core Data in Objective-C, 3rd Edition 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.