• 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: Get Users/Shared full path and its localized dir name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Get Users/Shared full path and its localized dir name (From: Erg Consultant <email@hidden>)

  • Prev by Date: Get Users/Shared full path and its localized dir name
  • Next by Date: Re: Drag and drop query
  • Previous by thread: Get Users/Shared full path and its localized dir name
  • Next by thread: Showing more warnings possible in Xcode?
  • Index(es):
    • Date
    • Thread