On Feb 18, 2010, at 12:30 AM, Paul Johnson wrote:

> 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.

This does not to me sound like a loose definition, and in my opinion this is 
exactly the kind of circumstance in which you should use the Application 
Support folder. If that data is specific to a user, then put it in 
~/Application Support/appInfo. You can (and should) get the path for such 
directories  from NSPathUtilities:

For the system's Application Folder:
NSArray *paths = 
NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, 
NSSystemDomainMask, YES); 
s = [paths objectAtIndex:0];

For the user's Application Folder:
NSArray *paths = 
NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, 
NSUserDomainMask, YES); 
s = [paths objectAtIndex:0];

NSSearchPathForDirectoriesInDomains is described in Foundation Functions 
Reference. Values for the parameters (NSSearchPathDirectory and 
NSSearchPathDomainMask) are described in  the Foundation Data Types Reference. 
Or just look at the enums declared in NSPathUtilities.h


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to