This is something similar to what I have been using. Sans error
checking and whatnot...
FSRef fsRef;
OSStatus err = FSFindFolder(kUserDomain, kCurrentUserFolderType,
FALSE, &fsRef);
CFURLRef home = CFURLCreateFromFSRef(kCFAllocatorDefault, &fsRef);
CFURLRef path =
CFURLCreateCopyAppendingPathComponent(kCFAllocatorDefault, home,
CFSTR("work"), TRUE);
CFURLGetFSRef(path, &fsRef);
// PARTY on fsRef...
CFRelease(home);
CFRelease(path);
On Nov 16, 2004, at 1:02 AM, OL&L Lists wrote:
This may be a newbie question, but how do I specify the current user
directory using a POSIX-style pathname in Carbon? I need to delete a
directory directly inside the current user directory so I need to make
a fixed path as a POSIX pathname string and then convert it to an
FSRef.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden