• 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: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

References: 
 >Creating localized directories (From: Michael Watson <email@hidden>)
 >Re: Creating localized directories (From: Andreas Mayer <email@hidden>)
 >Re: 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: Re: Creating localized directories
  • Index(es):
    • Date
    • Thread