Re: Get Users/Shared full path and its localized dir name
Re: Get Users/Shared full path and its localized dir name
- Subject: Re: Get Users/Shared full path and its localized dir name
- From: Steve Christensen <email@hidden>
- Date: Fri, 29 May 2009 18:18:58 -0700
On May 29, 2009, at 4:27 PM, Erg Consultant wrote:
How can I get the full path to the Users/Shared dir and the dir's
localized name?
FSRef usersSharedFSRef;
if (FSFindFolder(kOnAppropriateDisk, kSharedUserDataFolderType,
kDontCreateFolder, &usersSharedFSRef) == noErr)
{
NSString* usersSharedPath = [[(NSURL*)CFURLCreateFromFSRef(NULL,
&usersSharedFSRef) autorelease] path];
NSString* usersSharedDisplayName = [[NSFileManager
defaultManager] displayNameAtPath:usersSharedPath];
}
_______________________________________________
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