Document still modified after last Undo
Document still modified after last Undo
- Subject: Document still modified after last Undo
- From: David Catmull <email@hidden>
- Date: Thu, 27 Apr 2006 22:05:42 -0700
In my drawing app, I'm working on dragging objects with the mouse.
It's working except for one small problem: if I open a document, move
a graphic, and then undo, the document remains "modified" even though
the Undo command is left properly disabled.
Other undoable actions (which are done through bindings) don't have
this problem: the document reverts to being unmodified after the last
change is undone. The only difference I can think of is that for my
dragging, I bracket the change with begin/endUndoGrouping in case
multiple objects are selected. Could this be related, or am I missing
something else?
I was surprised to find that with changes to multiple objects through
bindings, undo grouping seems to be handled automatically. How does
it find the undo manager?
--
David Catmull
email@hidden
http://www.uncommonplace.com/
_______________________________________________
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