Re: Find the 'Application Support' folder
Re: Find the 'Application Support' folder
- Subject: Re: Find the 'Application Support' folder
- From: David Reed <email@hidden>
- Date: Sat, 9 Oct 2004 11:57:13 -0400
Or you could just use FindFolder (which avoids hard-coding paths), with
kApplicationSupportFolderType.
I have a simple category on NSFileManager to use FindFolder from Cocoa,
feel free to email me off-list if you'd like the code.
David.
On Oct 9, 2004, at 11:34, Sherm Pendley wrote:
On Oct 9, 2004, at 10:38 AM, Peter Karlsson wrote:
I want to find the 'Application Support' folder from my app. What is
the
best way to do this? Any example code?
For global supporting files that are used by all users, it's:
/Library/Application Support/My Application Name/
For per-user supporting files, it's under the user's home directory,
which you can get with the NSHomeDirectory() function:
$HOME/Library/Application Support/My Application Name/
Obviously you'll want to supply your own application name in the above.
sherm--
_______________________________________________
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
--
David Reed | email@hidden | AIM/iChat: parmadil01
_______________________________________________
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