• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSApplicationSupportFolder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSApplicationSupportFolder
      • From: "Sean McBride" <email@hidden>
References: 
 >NSApplicationSupportFolder (From: Georg Tuparev <email@hidden>)

  • Prev by Date: NSApplicationSupportFolder
  • Next by Date: Re: NSApplicationSupportFolder
  • Previous by thread: NSApplicationSupportFolder
  • Next by thread: Re: NSApplicationSupportFolder
  • Index(es):
    • Date
    • Thread