• 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: Find the 'Application Support' folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Find the 'Application Support' folder
      • From: Charles Srstka <email@hidden>
References: 
 >Re: Find the 'Application Support' folder (From: Steven Kramer <email@hidden>)

  • Prev by Date: Does anybody program in Java?!?!
  • Next by Date: modal window stack
  • Previous by thread: Re: Find the 'Application Support' folder
  • Next by thread: Re: Find the 'Application Support' folder
  • Index(es):
    • Date
    • Thread