Re: NSDoc's Magic File Watcher Ruins Core Data Migration [SOLVED]
Re: NSDoc's Magic File Watcher Ruins Core Data Migration [SOLVED]
- Subject: Re: NSDoc's Magic File Watcher Ruins Core Data Migration [SOLVED]
- From: Jerry Krinock <email@hidden>
- Date: Mon, 24 May 2010 14:29:09 -0700
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 (email@hidden)
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:
This email sent to email@hidden