Re: Core Data: consequences of disabling the undoManager
Re: Core Data: consequences of disabling the undoManager
- Subject: Re: Core Data: consequences of disabling the undoManager
- From: Mark Piccirelli <email@hidden>
- Date: Fri, 8 Feb 2008 16:27:20 -0800
On Feb 8, 2008, at 2:31 PM, Brian Williams wrote:
I have had big problems with CD and undo. The core of the problem is
that when
undo/redo happens I have no idea what happened, so my controller
can't do it's
job. I tried to observe the managed objects, but it was too
difficult to get
fine grained notifications of the changes, and more importantly if
you undo to
a time before the object existed your observer is gone.
You would also have to register undo actions for object addition and
removal, and add and remove the observer of object properties as
objects are added and removed. See for example SKTDocument's -
insertGraphics:atIndexes: and -removeGraphicsIndexes: methods, and its
undo support, in /Developer/Examples/AppKit/Sketch.
-- Mark
_______________________________________________
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