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
[EMAIL PROTECTED]
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>

Reply via email to