Defaults System
Mac OS X provides rich support for storage of user preferences and application defaults. Traditional user preferences and defaults are both called defaults in Cocoa. Every user has a defaults database which is created automatically. Defaults are stored in several different domains. For example, a user can have defaults that apply to only one application or defaults that apply to all applications run by the user. Defaults domains are accessed by name. Mac OS X defines the following domains: argument, global, registration, application, and languages. The first three are referenced in code using the NSArgumentDomain, NSGlobalDomain, and NSRegistrationDomain constants respectively. The application domain uses the application’s bundle ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access