Re: Creating localized directories
Re: Creating localized directories
- Subject: Re: Creating localized directories
- From: Michael Watson <email@hidden>
- Date: Mon, 19 Mar 2007 14:24:20 -0400
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?
--
On 19 Mar, 2007, at 13:56, Andreas Mayer wrote:
Am 19.03.2007 um 18:28 Uhr schrieb Michael Watson:
but I want to create it with the correctly localized name.
That's not how localization works in Mac OS X. Read:
http://developer.apple.com/documentation/MacOSX/Conceptual/
BPFileSystem/Articles/DisplayNames.html
How do I get the localized name of the Application Support folder?
For your purpose, you simply don't need to.
(You *do* need to look up the localized name if you want to display
it to the user. See NSFileManager's -displayNameAtPath:.)
Andreas
_______________________________________________
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:
40bungie.org
This email sent to email@hidden
_______________________________________________
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