• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: newbie q - referencing files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: newbie q - referencing files (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: MPNotifyQueue takes 500,000 nsec (worst case)
  • Next by Date: Re: AU Hosting and Persistence Questions
  • Previous by thread: Re: newbie q - referencing files
  • Next by thread: AudioUnitReset & apple hi shelf
  • Index(es):
    • Date
    • Thread