Skip to main content
Participant
January 22, 2009
Question

Same event - Multiple commands

  • January 22, 2009
  • 1 reply
  • 1310 views
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
This topic has been closed for replies.

1 reply

Participant
January 26, 2009
Hey Nishant,

Not sure what is happening for the second command to be fired first... or how you are calling the code. If you show the a snippet of the code it may shed some light on the matter.

Cheers,
Ross