Re: Find the 'Application Support' folder
Re: Find the 'Application Support' folder
- Subject: Re: Find the 'Application Support' folder
- From: "Sean McBride" <email@hidden>
- Date: Mon, 11 Oct 2004 20:40:33 -0400
Steven Kramer (email@hidden) on Sun, Oct 10, 2004 16:38 said:
>
> I want to find the 'Application Support' folder from my app. What is
>
> the
>
> best way to do this? Any example code?
>
>
NSFileManager* fileManager = [NSFileManager defaultManager];
>
NSMutableString* library = [[[NSSearchPathForDirectoriesInDomains
>
(NSLibraryDirectory, NSUserDomainMask, YES) anyObject] mutableCopy]
>
autorelease]; /// (where anyObject returns... any object!)
>
library = [[[library stringByAppendingPathComponent: @"Application
>
Support"] mutableCopy] autorelease];
This is still hardcoding the string "Application Support". As others
have said, using one of the FindFolder APIs is better.
--
Erroneous google translation: "The album includes/understands 27 of
greatest successes of famous Beatles such as: Coil to me C, Yesterday,
Let it Be and several others."
_______________________________________________
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