Skip navigation.
 
mlRe: Old style pathname
FROM : Nathan Day
DATE : Sun Jan 26 13:25:59 2003

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_removed>
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlOld style pathname Lorenzo Puleo Jan 23, 23:15
mlRe: Old style pathname Ali Ozer Jan 24, 17:58
mlRe: Old style pathname Nathan Day Jan 26, 13:25