Localising paths
Localising paths
- Subject: Localising paths
- From: Dale Gillard <email@hidden>
- Date: Wed, 18 Jun 2003 19:33:25 +1000
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
Dale
_______________________________________________
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.