• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: where to put persistent storage for command-line app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >where to put persistent storage for command-line app (From: William Squires <email@hidden>)

  • Prev by Date: where to put persistent storage for command-line app
  • Next by Date: Re: Question on NSTableViewDataSource Protocol
  • Previous by thread: where to put persistent storage for command-line app
  • Next by thread: Re: where to put persistent storage for command-line app
  • Index(es):
    • Date
    • Thread