realbasic-nug
[Top] [All Lists]

AW: FolderItem.ShellPath to CFURL?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: AW: FolderItem.ShellPath to CFURL?
From: Knut Lorenzen <RBNUG at fischerappelt dot de>
Date: Mon, 31 Jan 2005 09:52:35 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thomas Reed (tareedlists at mac dot com) 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>

<Prev in Thread] Current Thread [Next in Thread>
  • AW: FolderItem.ShellPath to CFURL?, Knut Lorenzen <=