Re: Proper way to initialize application support file
Re: Proper way to initialize application support file
- Subject: Re: Proper way to initialize application support file
- From: Kyle Sluder <email@hidden>
- Date: Wed, 17 Feb 2010 21:29:04 -0800
On Wed, Feb 17, 2010 at 9:15 PM, Paul Johnson <email@hidden> wrote:
> Steve and Kyle, I may not understand the term "Application bundle"
> correctly, but to me it shouldn't be something that the program can
> store data intot. If I'm wrong, then, for example, reinstalling the
> program (and presumably recreating the 'Application bundle') would
> destroy the acquired data, which is not a desirable behavior.
Correct, the app should not write into its own app bundle. It might
not even be allowed to, if the user doesn't have administrative
rights.
> I see the data I get from the internet as not in the strictest sense
> 'necessary' for the program to run, just that it would be unable to do
> very much without it. So using my loose definition, the Application
> Support folder would be the place to create my data file.
Correct.
> Finally, if the Application Support directory and the Application
> bundle are not the proper places to put the data (which will be
> retained for many future activations of the program), where would that
> place be? I certainly don't want to keep it in the Documents folder as
> the data is really to be considered as part of the program rather than
> as data created by the program.
Also correct. The Documents folder is for user-created content only.
--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