Re: NSApplicationSupportFolder
Re: NSApplicationSupportFolder
- Subject: Re: NSApplicationSupportFolder
- From: Shaun Wexler <email@hidden>
- Date: Mon, 27 Dec 2004 10:36:21 -0800
On Dec 27, 2004, at 10:17 AM, Georg Tuparev wrote:
Any idea where NSApplicationSupportFolder is defined?
cd /; grep "NSApplicationSupportFolder" **/*.h
finds nothing...
I think you have to hand-enter the non-localized string, such as:
- (NSArray *)applicationSupportPaths
{
NSArray *searchPaths =
NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
NSUserDomainMask + NSLocalDomainMask, YES);
NSMutableArray *applicationSupportPaths = [NSMutableArray
arrayWithCapacity:[searchPaths count]];
NSString *executableName = [[[NSBundle mainBundle] executablePath]
lastPathComponent];
NSString *pathComponent = [NSString stringWithFormat:@"Application
Support/SKW Development/%@", executableName];
NSEnumerator *pathEnum = [searchPaths objectEnumerator];
NSString *searchPath;
while ((searchPath = [pathEnum nextObject])) {
[applicationSupportPaths addObject:[searchPath
stringByAppendingPathComponent:pathComponent]];
}
return applicationSupportPaths;
}
--
Shaun Wexler
MacFOH
http://www.macfoh.com
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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