Old style pathname
Old style pathname
- Subject: Old style pathname
- From: Lorenzo Puleo <email@hidden>
- Date: Thu, 23 Jan 2003 23:15:57 +0100
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.