• 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: Application, Home, ... folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >RE: Application, Home, ... folders (From: "Yves Peneveyre" <email@hidden>)

  • Prev by Date: Re: Application, Home, ... folders
  • Next by Date: Re: Application, Home, ... folders
  • Previous by thread: Re: Application, Home, ... folders
  • Next by thread: Re: Application, Home, ... folders
  • Index(es):
    • Date
    • Thread