User Defaults(Chapter 13 of Cocoa Programming for Mac OS X)
Every application comes witha set of defaults from the factory. When a user edits his or her defaults, onlythe differences between the user's wishes and the factory defaults are stored inthe user's defaults database. Thus, every time the application starts up, youneed to remind it of the factory defaults. This operation is called registering defaults.After registering, you will use the userdefaults object to determine how the user wants the app to behave. This processis called reading and using the defaults. The data from the user's defaults database will beread automatically from the filesystem.
页:
[1]