Core Data migration: how to delete some managed objects?
Core Data migration: how to delete some managed objects?
- Subject: Core Data migration: how to delete some managed objects?
- From: Sean McBride <email@hidden>
- Date: Mon, 04 Mar 2013 17:38:25 -0500
- Organization: Rogue Research Inc.
Hi all,
What's a good way to delete some managed objects from a store when migrating the store from version x to version y?
Basically, for entity 'Foo', I'd like for instances that match predicate 'bar' to not exist in the new store.
In the headers, I see a "NSRemoveEntityMappingType", which sounds maybe appropriate, but I don't see any way to create them in Xcode's mapping editor. Or am I missing something there?
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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