How to save application preferences in Mac OS?
Is there a native way to save preferences in Mac OS ?
Can I write preferences into application package content开发者_如何学Go directory ?
The NSUserDefaults class is the standard way to save application preferences.
There are a number of tutorials / examples online (Google is your friend):
NSUserDefaults Tutorial
The native way is to use NUSuserDefaults. You won't want to write into the application directory for a number of reasons, not least because different users can have different preferences.
精彩评论