Date
1 - 1 of 1
UndoManager setActionNames
Graham Cox
The action name is part of the “view” layer in model-controller-view architecture. But most of the actual undoable ’stuff’ is in the model.
toggle quoted message
Show quoted text
So I usually set the action name at the top level action method that responds to the original command, even if that burrows down and changes a bunch of stuff in the model. That works fine, because the Undo Manager itself keeps the same action name across undo/redo actions even if it doesn’t directly invoke the original action method for redo. This works fine as long as your model doesn’t also try messing with the action name - just keep that in the view layer. —Graham On 5 Jul 2020, at 5:07 pm, Arved von Brasch via Cocoa-dev <cocoa-dev@...> wrote: |
|