• 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: Old style pathname
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Old style pathname (From: Lorenzo Puleo <email@hidden>)

  • Prev by Date: Re: Changing Pointers Dynamically and Build Warnings
  • Next by Date: (solved) Making a button show a menu when clicked
  • Previous by thread: Re: Old style pathname
  • Next by thread: Ideas for lock v3
  • Index(es):
    • Date
    • Thread