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

Re: POSIX Path to HFS?


  • Subject: Re: POSIX Path to HFS?
  • From: Nathan Day <email@hidden>
  • Date: Thu, 4 Apr 2002 22:39:26 +0930

part of URL services there is the function

CFStringRef CFURLCopyFileSystemPath (
CFURLRef anURL,
CFURLPathStyle pathStyle
);

enum CFURLPathStyle {
kCFURLPOSIXPathStyle = ,
kCFURLHFSPathStyle = 1,
kCFURLWindowsPathStyle = 2
};

On Thursday, April 4, 2002, at 11:50 AM, Rich Long wrote:

I'm probably missing something simple, but I have a file path (from NSOpenPanel) that contains an option-f character. I'd like to convert this to HFS format (for example: Macintosh HD:foo:bar.txt), but I can't seem to find a routine that would let me do it. Everything I've tried encodes the character as a unicode sequence. Thanks for any suggestions,

Rich

p.s. the goal is to use the file path in an AppleScript context.
_______________________________________________
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: 
 >POSIX Path to HFS? (From: Rich Long <email@hidden>)

  • Prev by Date: Re(2): Changing the menu bar
  • Next by Date: Resource Management ??
  • Previous by thread: POSIX Path to HFS?
  • Next by thread: Re: POSIX Path to HFS?
  • Index(es):
    • Date
    • Thread