• 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: Steven Kramer <email@hidden>
  • Date: Sun, 10 Oct 2004 22:38:43 +0200


Op 9-okt-04 om 16:38 heeft Peter Karlsson het volgende geschreven:

Dear list!

I want to find the 'Application Support' folder from my app. What is the
best way to do this? Any example code?

Best regards Peter



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];


works for me...

Regards,

Steven

--
email@hidden
http://sprintteam.com/

_______________________________________________
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: "Sean McBride" <email@hidden>
References: 
 >Find the 'Application Support' folder (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: Re:My app will not startup in another account
  • Next by Date: Re: NSArrayController and the ContentArray Binding
  • Previous by thread: Re: Find the 'Application Support' folder
  • Next by thread: Re: Find the 'Application Support' folder
  • Index(es):
    • Date
    • Thread