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

Get Cocoa® Programming 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.