Re: Application, Home, ... folders
Re: Application, Home, ... folders
- Subject: Re: Application, Home, ... folders
- From: David Remahl <email@hidden>
- Date: Thu, 25 Apr 2002 12:29:27 +0200
No, you cannot assume the user home folder is in /Users/. The home folder
may well be located at a network connected server, or in some other location
at a local file system. You need to use NSHomeDirectory() or
NSHomeDirectoryForUser(NSString* name) to get the current home folder for a
user. Those are defined in <Foundation/NSPathUtilities.h>.
/ Rgds, David
>
Erik, Chris,
>
>
Chris has right.
>
I tried to start my system in French, and the "Home" directory is
>
labeled "Depart" (in the finder toolbar).
>
What I am trying to find is the localized version of these
>
directories AND the locations.
>
But, for the location, I can assume the Home are always in
>
/Users/<username>/
>
Is it right ?
>
In other words, where the finder find the localized version of the different
>
folders ?
>
>
>
Best Regards
>
>
Yves Peneveyre
>
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Chris Ridd
>
Sent: jeudi, 25. avril 2002 10:05
>
To: email@hidden
>
Subject: Re: Application, Home, ... folders
>
>
>
email@hidden wrote:
>
> For Pictures, same stuff:
>
>
>
> [[NSString stringWithString:@"~/Pictures"] stringByExpandingTildeInPath]
>
>
>
> For Applications, is it the /Applications or ~/Applications folder or
>
> /Network/Applications?
>
>
Wouldn't the "Pictures" and "Applications" strings need to be localized?
>
ISTR a message a few days back refering to "Dokumente" being used for the
>
"Documents" folder in Germany.
>
>
Cheers,
>
>
Chris
_______________________________________________
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.