• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data : Undo Delete : Cannot fulfill a fault
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Core Data : Undo Delete : Cannot fulfill a fault
      • From: Richard Somers <email@hidden>
  • Prev by Date: Re: Affinity between a document (plain text) file and app-specific parameters for this document
  • Next by Date: Auto Layout of Matrix
  • Previous by thread: How to open all the documents from the previous "session"?
  • Next by thread: Re: Core Data : Undo Delete : Cannot fulfill a fault
  • Index(es):
    • Date
    • Thread