Re: NSApplicationSupportFolder
Re: NSApplicationSupportFolder
- Subject: Re: NSApplicationSupportFolder
- From: BK <email@hidden>
- Date: Tue, 28 Dec 2004 09:49:06 +0900
On Dec 28, 2004, at 4:03, Sean McBride wrote:
Hard coding paths is very bad. "Application Support" may change names in
the future. Using the FSFindFolder API is best and safest.
AppleScript's Standard Additions have a command to return the path to the Application Support folder.
POSIX path of (path to application support)
--> "/Library/Application Support/"
Even if Apple was to change the path in the future, this should still return the correct path.
So, what you could do is have your application run an embedded one line AppleScript to obtain the path and then store it away for use throughout your code.
Not for purists, but safe and performance shouldn't be an issue if you call this only once.
rgds
bk
_______________________________________________
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