On 12-feb-2007, at 19:06, Brad Hutchings wrote:
A tip for anyone converting a CodeWarrior Mach-O plugin to XCode... REALpathFromFolderItem returns a path that works with CodeWarrior's fopen, but not XCode's. The path is an old-style Mac path (: separated), not a UNIX path that fopen expects. Am I missing an easier way of opening a file than I use below? Is there something here that should be feature requested? I get the string path, make a new string prepended by "/Volumes/", append the path, and convert ':'s to '/'s.
The recommended way would be to use CFURLCreateWithFileSystemPath (with kCFURLHFSPathStyle) and CFURLCopyFileSystemPath (with kCFURLPOSIXPathStyle).
HTH, - Rob Laveaux -------------------------------------------------------- Pluggers Software Thijssestraat 203 2521 ZG Den Haag The Netherlands Email: [EMAIL PROTECTED] Website: http://www.pluggers.nl -------------------------------------------------------- _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
