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: Paul Johnson <email@hidden>
- Date: Thu, 18 Feb 2010 00:15:53 -0500
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.
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.
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.
On Wed, Feb 17, 2010 at 4:25 PM, Steven Degutis
<email@hidden> wrote:
> Apple's docs explicitly say that this folder should only contain files that
> are *not* necessary for the app to function normally. Files that are
> necessary should be inside your app bundle, usually.
> -Steven
>
> On Wed, Feb 17, 2010 at 4:21 PM, Paul Johnson <email@hidden> wrote:
>>
>> I am working on a Document-based application that needs to have a
>> certain file in ~/Library/Application Support/<appname> before it can
>> do anything. It needs to be created the first time the program is run
>> (or if it has been deleted by the user).
>>
>> I've created a class XXAppDelegate and declared it as implementing the
>> NSApplicationDelegate protocol, and I defined
>> -(void)applicationDidFinishedLaunching:(NSNotification*)aNotification.
>> In this method I want to perform the file creation. Does this sound
>> like I'm on the right track? (Newbie as you can tell.)
>>
>> I should add that the file needs to be created by accessing the
>> internet and could take even a minute to finish, so I will no doubt
>> have to worry about informing the user about the delay when the
>> program is run for the first time, but before I charge in this
>> direction I would appreciate some affirmation I'm on the right track.
>> _______________________________________________
>>
>> 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
>
>
>
> --
> Steven Degutis
> http://www.thoughtfultree.com/
> http://www.degutis.org/
>
_______________________________________________
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