Re: Creating localized directories
Re: Creating localized directories
- Subject: Re: Creating localized directories
- From: "Sean McBride" <email@hidden>
- Date: Mon, 19 Mar 2007 14:07:17 -0400
- Organization: Rogue Research
On 2007-03-19 13:28, Michael Watson said:
>I have an application that looks for the user's Application Support
>folder via NSSearchPathForDirectoriesInDomain(). If it doesn't exist
>for some reason, I'll need to create it, but I want to create it with
>the correctly localized name.
If you use FSFindFolder() and pass true for the 'createFolder'
parameter, then the OS will 'do the right thing' and create it properly
(which as Andreas said is not actually a localised foldername). It
seems that the Cocoa APIs don't create the folder in question if it
doesn't exist, at least they are not documented to do so.
--
____________________________________________________________
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