• 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: Getting localized /Users/Shared Dir Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting localized /Users/Shared Dir Name


  • Subject: Re: Getting localized /Users/Shared Dir Name
  • From: Erg Consultant <email@hidden>
  • Date: Fri, 29 May 2009 16:01:29 -0700 (PDT)

How does that help?

I can get a list of all user dirs via:

NSSearchPathForDirectoriesInDomains( NSUserDirectory, NSLocalDomainMask, YES );

But I still don't know which of those returned is the Shared one.

Erg




________________________________
From: Chris Parker <email@hidden>
To: Erg Consultant <email@hidden>
Cc: Chris Parker <email@hidden>; email@hidden
Sent: Friday, May 29, 2009 3:52:45 PM
Subject: Re: Getting localized /Users/Shared Dir Name


On 29 May 2009, at 3:49 PM, Erg Consultant wrote:

> I don't see any methods such as NSSearchPathForDirectoriesInDomains() for getting the localized name of the /Users/Shared directory. Is there one?

Once you have any path, you can get the localized components via -[NSFileManager componentsToDisplayForPath:].

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html

..chris



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: Getting localized /Users/Shared Dir Name
      • From: Michael Ash <email@hidden>
References: 
 >Getting localized /Users/Shared Dir Name (From: Erg Consultant <email@hidden>)
 >Re: Getting localized /Users/Shared Dir Name (From: Chris Parker <email@hidden>)

  • Prev by Date: Re: Getting localized /Users/Shared Dir Name
  • Next by Date: Re: Help needed with setting autoresizing masks
  • Previous by thread: Re: Getting localized /Users/Shared Dir Name
  • Next by thread: Re: Getting localized /Users/Shared Dir Name
  • Index(es):
    • Date
    • Thread