Re: "First Run" installation of Application support stuff?
Re: "First Run" installation of Application support stuff?
- Subject: Re: "First Run" installation of Application support stuff?
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 18 Dec 2002 13:09:04 -0800
On Wednesday, December 18, 2002, at 11:26 AM, Bill Bumgarner wrote:
On Tuesday, Dec 17, 2002, at 16:11 US/Eastern,
email@hidden wrote:
Its not a big deal to update a pref file residing in the app folder
from
within your app. If a user moves the pref file out of the app folder,
a new
one will be created and the old prefs are lost, but that is no
different for
prefs in the pref folder.
I have to chime in here...
Do not ever, under any circumstances, for any reason, store prefs in
the app folder. It is a bad, bad idea no matter what way you look at
it. It is just lazy. There are places to store writable stuff that
are well documented and well convered in this thread. In the app
wrapper is NOT ONE OF THEM.
[Bill's excellent exposition of why this is true snipped]
I'll just chime in here, too.
Bill is 100% correct. Prefs are user data, they are not attributes of
an app. Writing them into the app wrapper is an outdated habit from
the days of a single-user mindset. There's a reason for
NSUserDefaults, and Mac OS X apps should use them to comply with UI
guidelines and the users' expectations. Besides, it's less work to do
it right.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.