Re: where to put persistent storage for command-line app
Re: where to put persistent storage for command-line app
- Subject: Re: where to put persistent storage for command-line app
- From: Kyle Sluder <email@hidden>
- Date: Thu, 15 May 2014 22:33:35 -0700
On May 15, 2014, at 8:47 PM, William Squires <email@hidden> wrote:
>
> Should I put it in /Library/Application\ Support/ or /Library/Preferences, or somewhere else?
Definitely not in ~/Library/Preferences, unless you are using NSUserDefaults.
What kind of persistent storage are you talking about? Traditionally, command line utilities store their preferences in plaintext dot files in the user’s home directory. If your command line tool is intended to be invoked directly, you should either honor that convention or use NSUserDefaults for your preferences.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden