• 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: What does core data do during a Save As?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does core data do during a Save As?


  • Subject: Re: What does core data do during a Save As?
  • From: "Melissa J. Turner" <email@hidden>
  • Date: Mon, 4 Oct 2010 13:04:15 -0700

On Oct 1, 2010, at 10:02 PM, Jerry Krinock wrote:

>
> On 2010 Oct 01, at 10:44, Quincey Morris wrote:
>
>> Core Data implements Save As as a migration process using a mapping model that it constructs on the fly
>
> Eeek.  I never knew that.
>

I'm late to the game, but this is incorrect. The Save As functionality does not use the migration feature.

Save As simply(?) loads all the objects, messes with the objectIDs, and saves to the new location. This means that all the standard rules for loading objects (ie don't touch relationships in awakeFromFetch) apply, and any business logic your classes implement on save will be triggered (unlike migration, which modifies the model to use NSManagedObject instead of custom classes).

+Melissa


_______________________________________________

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

References: 
 >What does core data do during a Save As? (From: Gideon King <email@hidden>)
 >Re: What does core data do during a Save As? (From: Quincey Morris <email@hidden>)
 >Re: What does core data do during a Save As? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: clear a CGContextRef in an iPhone app
  • Next by Date: allKeys and allValues
  • Previous by thread: Re: What does core data do during a Save As?
  • Next by thread: Re: Why is NSPopUp broken in drop-down mode?
  • Index(es):
    • Date
    • Thread