Re: Getting localized /Users/Shared Dir Name
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