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: Jonathan Johnson <jonj at realsoftware dot com>
Date: Mon, 12 Feb 2007 12:29:50 -0600
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> <448F6A54-C230-4E8A-9CE5-946F1E22DFD9 at realsoftware dot com> <5352E5FA-AF9F-4F24-B687-958CF91A5192 at realsoftware dot com> <01C5DE12-AB27-4CF0-9FF3-8D22FD61198A at mac dot com>

On Feb 12, 2007, at 12:26 PM, Rob Laveaux wrote:


On 12-feb-2007, at 19:18, Jonathan Johnson wrote:

Although if you're interested in only the path, there's FSRefMakePath as well, which is actually a bit easier. Most of my uses have other uses for the CFURL though :)

If I remember well, the drawback of FSRefMakePath is that it only works on existing files. It does not work on new (non-existing) files. It might not be a problem in this case, it is just a thing to keep in mind :-)

True, but the downside of using CFURLCreateFromFileSystemPath is that any HFS path is not guaranteed to be unique because two volumes can be mounted with the same name. The FSRef method is guaranteed to work without confusion, and if you must, you can always get the CFURL to the parent, then get the child with the name given in REALFSRefFromFolderItem.

HTH,
Jon


--
Jonathan Johnson
jonj at realsoftware dot com
REAL Software, Inc.

REAL World 2007 Conference
May 9 - 11 in Austin, Texas
<http://www.realsoftware.com/realworld>

_______________________________________________
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>