I did as Quincey suggested and it fixed the bug in my multi-stage automatic 
migration.

Indeed, FSExchangeObjects() is documented as:

"... allows programs to implement a “safe save” operation by creating and 
writing a complete new file and swapping the contents. An alias, FSSpec, or 
FSRef that refers to the old file will now access the new data. ..."

Now that is indeed quite useful, and just what I needed.  I wonder why Apple 
didn't provide a Cocoa wrapper for FSExchangeObjects() in NSFileManager?  Maybe 
they want us appreciate Quincey some more.

Thanks again, Quincey!

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to