Re: Find the 'Application Support' folder
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