On Sep 1, 2008, at 5:27 PM, J. Todd Slack wrote:
What is the proper way to convert an HFS Path to a POSIX path?So take: Husband:Users:slack:Music:iTunes:iTunes Music:Adult:Resucitation:03 - Minors at night.mp3and convert to: /Users/slack/Music/iTunes:/Tunes Music/Adult/ Resucitation/03 - Minors at night.mp3I thought there was an NSFileManager Command.
I don't know of a completely Cocoa approach, but you could use CFURLCreateWithFileSystemPath to convert the HFS path to a CFURLRef, and then typecast the CFURLRef as NSURL*. A possible gotcha is that I don't know what character encoding would be used in an HFS path.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]