POSIX path to HFS ?

I have a file path from NSOpenPanel, I would like to convert it to HFS format…

CFStringRef CFURLCopyFileSystemPath (
CFURLRef anURL,
CFURLPathStyle pathStyle
);

enum CFURLPathStyle {
kCFURLPOSIXPathStyle = ,
kCFURLHFSPathStyle = 1,
kCFURLWindowsPathStyle = 2
};
By first converting the POSIX path into an URL with CFURLCreateWithFileSystemPath, you can then pass the newly created URL to CFURLCopyFileSystemPath asking for kCFURLHFSPathStyle. See Apple Documentation for more information.
URL services defines: