Re: Saving to application support folder.
Re: Saving to application support folder.
- Subject: Re: Saving to application support folder.
- From: Hasani Hunter <email@hidden>
- Date: Mon, 8 Oct 2007 14:05:02 -0500
/**
Returns the support folder for the application, used to store the
Core Data
store file. This code uses a folder named "FinancialAid" for
the content, either in the NSApplicationSupportDirectory location
or (if the
former cannot be found), the system's temporary directory.
*/
- (NSString *)applicationSupportFolder {
NSArray *paths =
NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory,
NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:
0] : NSTemporaryDirectory();
return [basePath
stringByAppendingPathComponent:@"ApplicationName"];
}
from my application delegate ( created by xcode )
On Oct 8, 2007, at 1:59 PM, Sandro Noel wrote:
that's not really what i am loking for...
i'm not searching for a system folder.
i'm looking for my own application support folder.
wich are usualy located into ~/library/application support/[ApName]
i need to find the application name programatically instead of hard
coding it,
is that possible ?
Sandro Noel
email@hidden
On 8-Oct-07, at 2:47 PM, Nick Zitzmann wrote:
On Oct 8, 2007, at 12:44 PM, Sandro Noel wrote:
I wish to save some files to my application's support folder.
is there a variable somewhere that would contain the full path to
that folder or do i have
to create the folder?
There isn't. Use FSFindFolder().
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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
_______________________________________________
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