• 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: NSDoc's Magic File Watcher Ruins Core Data Migration [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSDoc's Magic File Watcher Ruins Core Data Migration [SOLVED]
      • From: Chris Parker <email@hidden>
References: 
 >NSDoc's Magic File Watcher Ruins Core Data Migration (From: Jerry Krinock <email@hidden>)
 >Re: NSDoc's Magic File Watcher Ruins Core Data Migration (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Layer-hosting views and layer-backed scroll views
  • Next by Date: IKImageView Question
  • Previous by thread: Re: NSDoc's Magic File Watcher Ruins Core Data Migration
  • Next by thread: Re: NSDoc's Magic File Watcher Ruins Core Data Migration [SOLVED]
  • Index(es):
    • Date
    • Thread