Re: What does core data do during a Save As?
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