[webkit-dev] Question for editing experts about Undo/Redo
Maciej Stachowiak
mjs at apple.com
Fri Feb 23 01:19:39 PST 2007
Hey everyone,
I was discussing editing client methods with George and Lars, and the
following came up. WebKit (on the mac at least) appears to re-
register undo items when you do an undo or redo action. See
WebEditorClient.mm (registerCommandForUndoOrRedo), and Editor.cpp
which calls registerCommandforUndo for both the original editing and
a redo.
But the Cocoa documentation implies that this should not be
necessary, NSUndoManager should adjust the undo chain on an Undo or
Redo action: <http://developer.apple.com/documentation/Cocoa/
Conceptual/UndoArchitecture/>
Does anyone know why we are explicitly re-registering on undo and redo?
Regards,
Maciej
More information about the webkit-dev
mailing list