Re: Core Data migration: how to delete some managed objects?
Re: Core Data migration: how to delete some managed objects?
- Subject: Re: Core Data migration: how to delete some managed objects?
- From: Jerry Krinock <email@hidden>
- Date: Tue, 05 Mar 2013 18:56:32 -0800
On 2013 Mar 05, at 14:25, Sean McBride <email@hidden> wrote:
> I take it you are using your technique successfully in practice?
Maybe not. I'd pasted in some of my code but modified it for your case. Although I have done a lot of stuff in that method, I'm not sure if I have ever used that specific technique of *not* invoking super, to "delete" an object.
If you invoked associateSourceInstance:withDestinationInstance:forEntityMapping: per the documentation, you'd pass nil for destinationInstance. And then it will either (1) degenerate internally to a no-op, (2) raise an exception, or (3) crash. You can figure it out from there :)
_______________________________________________
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