MOC NSDeletedObjectsKey notifications on undo/redo show default object values?
MOC NSDeletedObjectsKey notifications on undo/redo show default object values?
- Subject: MOC NSDeletedObjectsKey notifications on undo/redo show default object values?
- From: George Orthwein <email@hidden>
- Date: Tue, 26 Sep 2006 17:31:46 -0400
So I'm nicely using
NSManagedObjectContextObjectsDidChangeNotification to track changes
to my managed objects. The problem occurs when I insert an object and
then undo it (or delete an object and undo/redo). The deleted object
notifications show all the object attributes at their initial default
values. Specifically, I'm setting a uuid string attribute in
awakeFromInsert that unfortunately displays as nil in the delete
notifications generated from the undo/redo.
I can probably work around this somehow but I'm wondering if there is
a known solution.
(Or maybe I missed a way to set dynamic default values via the data
modeler? :)
Thanks,
George
_______________________________________________
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