• 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: HFS Path To POSIX Path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HFS Path To POSIX Path


  • Subject: Re: HFS Path To POSIX Path
  • From: Gregory Weston <email@hidden>
  • Date: Mon, 01 Sep 2008 20:54:38 -0400

J. Todd Slack wrote:

HI All,

What is the proper way to convert an HFS Path to a POSIX path?

The proper way is to make whatever effort you can to avoid having an HFS path to worry about in the first place. So if you have any control over that end of things, I'd say avoid it. In particular, if you're storing a file reference for any length of time, prefer aliases.


If that's not an option, I think the quickest route is through CFURLCreateWithFileSystemPath and CFURLCopyFileSystemPath.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: HFS Path To POSIX Path
      • From: "J. Todd Slack" <email@hidden>
  • Prev by Date: Re: NSTableView/NSOutlineView variable row height
  • Next by Date: Re: how to delete the current user's directory?
  • Previous by thread: Re: HFS Path To POSIX Path
  • Next by thread: Re: HFS Path To POSIX Path
  • Index(es):
    • Date
    • Thread