Re: Creating localized directories
Re: Creating localized directories
- Subject: Re: Creating localized directories
- From: "Sean McBride" <email@hidden>
- Date: Mon, 19 Mar 2007 14:35:43 -0400
- Organization: Rogue Research
On 2007-03-19 14:24, Michael Watson said:
>So what you're saying is that this needs no localization changes:
>
>NSArray *libraryDir = NSSearchPathForDirectoriesInDomains
>(NSLibraryDirectory, NSUserDomainMask, YES);
>// imagine a check for nil here
>NSString *appSupportDir = [[libraryDir objectAtIndex:0]
>stringByAppendingPathComponent:@"Application Support"];
>
>Because the folder name itself, to the system, is always "Application
>Support", but may be displayed differently depending on language
>setting. Si?
You should not rely on it being "Application Support" forever, even in
English. Use the NSApplicationSupportDirectory constant. Alas, it was
only added in 10.4. If you need to support older, use FSFindFolder() instead.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden