Core Data : Undo Delete : Cannot fulfill a fault
Core Data : Undo Delete : Cannot fulfill a fault
- Subject: Core Data : Undo Delete : Cannot fulfill a fault
- From: Jerry Krinock <email@hidden>
- Date: Sun, 25 Sep 2011 22:13:17 -0700
I'm debugging a corner case wherein undoing a group containing deletion of a managed object causes a "Core Data could not fulfill a fault" exception on this object. It would help to understand exactly how managed objects are un-deleted.
If I delete a managed object, and then save (or if Cocoa autosaves in place) the object is turned into a fault. Normally, Undo is still able to restore the object. As implied by the documentation [1], the restored object is the same object; it has the same address as the original.
My guess is that the undo invocation contains dictionaries of deleted object properties which are used during Undo to re-populate the properties of a faulted object. Is that indeed the way it works? (Feel free to improve my wording.)
Any ideas how I could be hosing those properties, other than by over-releasing the object?
Thanks,
Jerry Krinock
[1] In Core Data Programming Guide ▸ Memory Management Using Core Data ▸ Change and Undo Management,
"The undo manager associated with a context retains any changed managed objects."_______________________________________________
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