Re: Userdefaults, their initial values, and bindings
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