Xojo Conferences
XDCMay2019MiamiUSA

AW: FolderItem.ShellPath to CFURL? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: HOW TO: drag item to listbox COLUMN? ** Bug in the DropLeft?
Next thread: RBScript debugging


AW: FolderItem.ShellPath to CFURL?   -   Knut Lorenzen

AW: FolderItem.ShellPath to CFURL?
Date: 31.01.05 09:52 (Mon, 31 Jan 2005 09:52:35 +0100)
From: Knut Lorenzen
Thomas Reed (<email address removed>) schrieb dereinst (am 27.01.2005 21:43
Uhr):

> On Jan 27, 2005, at 1:52 PM, Charles Yeomans wrote:
>
>> I have plenty of such code. For existing FolderItems, use
>> CFURLCreateFromFSRef. Of course this requires that you create an
>> FSRef first; I think that I have posted code in the past to do so, or
>> you could try Thomas Reed's site, <http://www.bitjuggler.com/>, for
>> some code to do so.
>
> Yup, my Core Foundation classes should do this.

Thanks Charles and Thomas. You have pointed me in the right direction, what
I really need is CFURLCopyFileSystemPath:

Const kCFURLPOSIXPathStyle = 0
Const kCFURLHFSPathStyle = 1
Const kCFURLWindowsPathStyle = 2

Declare Function CFURLCopyFileSystemPath Lib "CarbonLib" (theURL As Integer,
PathStyle As Integer) As Integer

StringRef = CFURLCopyFileSystemPath(URLRef, kCFURLPOSIXPathStyle)

Thanks,

Knut

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>