• 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: Localising paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localising paths


  • Subject: Re: Localising paths
  • From: Vince DeMarco <email@hidden>
  • Date: Wed, 18 Jun 2003 10:36:22 -0700

On Wednesday, June 18, 2003, at 2:33 AM, Dale Gillard wrote:

I'm confused about the use of NSSearchPathForDirectoriesInDomains() and localising paths, and would appreciate your guidance.

NSSearchPathForDirectoriesInDomains() returns 0 or more paths found in a specified directory. In my case, I need to access a folder 3 levels deep within the user's Documents directory. Even though hard-coding file paths is a Bad Thing, it seems in this case that I must hard code the path from the user's Document directory to this folder so that I can locate it.

If that is the case, my question relates to localising this hard coded path. I understand that Mac OS X uses English named file paths and displays the localised name of the path to the user. Does this mean that I can hard code the above path in English, as in the following snippet, and it will just work on a French user's system? Or do I need to localise the hard coded path name to its French equivalent?

Thanks in advance


Use the English version.

vince
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Localising paths (From: Dale Gillard <email@hidden>)

  • Prev by Date: Re: Getting notified when my cell is hidden in NSOutlineView
  • Next by Date: NSPopUpButton - menu exchange
  • Previous by thread: Localising paths
  • Next by thread: Re: Localising paths
  • Index(es):
    • Date
    • Thread