Re: Where/how to store lots of user application data
Re: Where/how to store lots of user application data
- Subject: Re: Where/how to store lots of user application data
- From: Ricky Sharp <email@hidden>
- Date: Fri, 13 May 2005 12:47:22 -0500
On Friday, May 13, 2005, at 12:25PM, Ondra Cada <email@hidden> wrote:
>Graham,
>
>On 13.5.2005, at 18:00, Graham wrote:
>
>> I am new to Cocoa programming and wanted to ask where I should
>> start looking to learn the 'correct' method and location for
>> storing user data (such as a large number of images). I have
>> already been using the User defaults plist for simple application
>> preferences for the user, but I'd like to know where files should
>> be stored for a user. The images being stored are really just a cache.
>>
>
>Others said it all (Application Support, Caches, etc.). I'd just like
>to add you should use the app identifier instead of app name for
>folders: the identifier is unique thanks to the reverse DNS
>principle, the app name may not be.
>
>Namely, do not use "~/Library/Application Support/MyApp". Instead,
>always use "~/Library/Application Support/com.gragsie.MyApp".
Definitely. Or, use a folder hierarchy (this is what I do for all my products). For example:
+ Application Support
+ My Company
+ My Product Family
+ My Product
* all support files
The reason I went the folder route was that it was easier for the user to find it. Furthermore, it made integration with .mac syncing a snap; I just had to specify the root "My Company" folder.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden