[SOLVED] Re: CoreData silently failing to insert?
[SOLVED] Re: CoreData silently failing to insert?
- Subject: [SOLVED] Re: CoreData silently failing to insert?
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 28 Jan 2009 12:59:06 -0700
Thanks to everyone that responded. One off-list message I received
made me think about the problem a little more, and after some
debugging, I realized I had a PEBKAC problem on my hands. My app does
some fetch requests to check on existing data in the database,
compares it to what's in a non-CD model, and deletes objects if
certain bits of data are missing. In this case, there are several data
structures sharing a common entity. I just didn't count on -
executeFetchRequest: searching both the persistent store and the
objects that were inserted but not saved. D'oh! Making the predicate
more discriminatory worked around this, and now all is well.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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