Re: newbie q - referencing files
Re: newbie q - referencing files
- Subject: Re: newbie q - referencing files
- From: Carsten Gehle <email@hidden>
- Date: Thu, 24 Oct 2002 00:08:18 +0200
On Wednesday, October 23, 2002, at 06:24 PM, Doug Wyatt wrote:
Don't store FSRefs -- it's not guaranteed that one will be valid if
you save it to persistent storage and re-load it.
Ups, thanks for that information. Personally I am using posix paths,
but as many people from 'traditional Apple side' are propagating
FSRefs, I assumed that it is recommended to use them (and that there
was an easy way of storing them, though creating an alias is not that
complex). Anyway, maybe this is the wrong list to ask, but am I right
with this:
An alias will resolve correctly if a file was moved on one disk and
will fail if the file was moved from one disk to another.
A posix path will fail if the file was moved to any other location (or
if the name of the file or any name in the folder hierarchy changed).
A posix path allows to replace a referenced file by giving it the same
name and putting it into the same folder. This is not possible with
aliases (or is it? does it depend on the existence of the old file?).
Concerning this aspects, a CFUrl is equivalent to a posix path.
Carsten
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.