• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating localized directories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Creating localized directories (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: Creating localized directories
  • Next by Date: Re: Creating localized directories
  • Previous by thread: Re: Creating localized directories
  • Next by thread: Standard "combo" button class?
  • Index(es):
    • Date
    • Thread