• 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: Userdefaults, their initial values, and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Userdefaults, their initial values, and bindings


  • Subject: Re: Userdefaults, their initial values, and bindings
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 20 Aug 2007 18:49:54 +0200

On 20.08.2007, at 17:47, Francis Derive wrote:
Well, but the preferences plist in ~/Library/Preferences was produced with no line of code in my app - only but a few clicks in IB - .
So, how could I do to have these defaults values created in a plist in the application bundle, rather than in the home library ? Does it make sense to do that or should I go on with the plist in the Library ?

Your app may not have write permissions to modify itself for security reasons (e.g. user is not an admin user, app is being run from a .Mac DAV share or other file server...), so you shouldn't do anything to your app bundle at runtime. Put it in ~/Library/ Application Support or ~/Library/Preferences, where you're guaranteed to have access on any non-broken system.


If you just want to create a template of values, use Property List Editor.app (/Developer/Applications/...) to create it, and then just add the file as a resource to your project.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

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: 
 >Userdefaults, their initial values, and bindings (From: Francis Derive <email@hidden>)
 >Re: Userdefaults, their initial values, and bindings (From: mmalc crawford <email@hidden>)
 >Re: Userdefaults, their initial values, and bindings (From: Francis Derive <email@hidden>)

  • Prev by Date: Mysterious crash in loaded nib (sorry for the double-post)
  • Next by Date: Re: Userdefaults, their initial values, and bindings
  • Previous by thread: Re: Userdefaults, their initial values, and bindings
  • Next by thread: Re: Userdefaults, their initial values, and bindings
  • Index(es):
    • Date
    • Thread