Search code examples
cocoaregistryapplication-settings

Cocoa/Mac - external config settings for running app


On windows, we use registry or .ini or xml config etc for settings that apps can pull in at run time w/o making code changes.

On Mac/Cocoa, what're the best approaches to do that and what are the corresponding APIs?


Solution

  • See NSUserDefaults and the User Defaults Programming Topics. NSUserDefaults stores the data as a property list in the ~/Library/Preferences directory.