realbasic-plugins
[Top] [All Lists]

Re: REALpathFromFolderItem and XCode

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: REALpathFromFolderItem and XCode
From: Rob Laveaux <rob dot laveaux at mac dot com>
Date: Mon, 12 Feb 2007 19:19:54 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <B28753C9-40EE-4464-BBE2-AB62BD6608CB at componentx dot com>

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: rob dot laveaux at pluggers dot nl
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>


<Prev in Thread] Current Thread [Next in Thread>