Question
Same event - Multiple commands
Hi,
Here's what I'm trying to achieve.
I've an application where some events need to be added to an undo-redo queue. I'm trying to register two commands for the same event by initiating multiple controllers. So that one command does what the event is supposed to do and the other command registers the state of the model for enabling undo-redo.
I want it this way so that I can control which actions to enable undo-redo by simply modifying the controller and not having to change the actual commands.
Is there a way I can sequence, which of the two commands fires first? I somehow am getting the undo-redo command to fire second which is defeating the purpose.
Nishant
Here's what I'm trying to achieve.
I've an application where some events need to be added to an undo-redo queue. I'm trying to register two commands for the same event by initiating multiple controllers. So that one command does what the event is supposed to do and the other command registers the state of the model for enabling undo-redo.
I want it this way so that I can control which actions to enable undo-redo by simply modifying the controller and not having to change the actual commands.
Is there a way I can sequence, which of the two commands fires first? I somehow am getting the undo-redo command to fire second which is defeating the purpose.
Nishant
