Handling observing CoreData undo's
Handling observing CoreData undo's
- Subject: Handling observing CoreData undo's
- From: John Timmer <email@hidden>
- Date: Wed, 01 Jun 2005 15:25:55 -0400
I'm running into a related problem to the one I had earlier. Core Data
objects don't like to have anything manually observing their values when
they're removed by an Undo command that reverses their creation. Mostly, I
can work around this.
The place I'm having a problem is where I have a window that shows a
detailed view of an object. If the window's open when the user undo's the
creation of that specific object, I'd like it to close (otherwise,
everything in it just displays nil values). Unfortunately, if I observe an
object in it to see when that gets set to nil, I get the exception raised
when manually observing an "undone" object, and undo-ing isn't completed,
leaving the whole managedObjectContext in an intermediate state.
Does anyone have any suggestions as to how to detect when a specific object
gets undone?
JT
_______________________________________________
This mind intentionally left blank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden