Re: Old style pathname
Re: Old style pathname
- Subject: Re: Old style pathname
- From: Nathan Day <email@hidden>
- Date: Sun, 26 Jan 2003 22:55:59 +1030
Look in Core Foundation, there is a function that works with
CFStringRef which can give you a path in the form of
"MacintoshHD:myFirstFolder:mySecondFolder:myFile"
On Friday, January 24, 2003, at 08:45 AM, Lorenzo Puleo wrote:
Hi,
I have a NSString containing the pathname of a file I took from
NSArray *filesToOpen = [oPanel filenames];
pathname = [filesToOpen objectAtIndex:0];
/myFirstFolder/mySecondFolder/myFile
Now I want to show to the user the pathname with the name of the disk
like
MacintoshHD/myFirstFolder/mySecondFolder/myFile
Using Cocoa, if MacintoshHD is the boot volume I obtain
/myFirstFolder/mySecondFolder/myFile
and if it is not the boot volume I obtain
/Volumes/MacintoshHD/myFirstFolder/mySecondFolder/myFile
How could I do this?
Using Carbon APIs?
Any suggestion will be appreciated. Thank you.
--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.