9

If I add to a control multiple target-action pairs for the same event, will the control send the action messages to the targets in the same order that I added them?

I read the following References but couldn't find an answer.

Bobby
  • 11,419
  • 5
  • 44
  • 69
ma11hew28
  • 121,420
  • 116
  • 450
  • 651

1 Answers1

0
  • I think this is not documented
  • even you can discover it, it could change in future
  • As you are adding targets, I suppose you prefer code over using Xibs/Storyboards, so i think is far better to add only ONE target and BY CODE call every code you wrote in action.This approach is more modular, manintenable, debuggable, and you can assign the execution ORDER You want.

You can also use only ONE Action for all events (in effect action will be a normal method..) tagging buttons AND use "switch" on tag...

ingconti
  • 10,876
  • 3
  • 61
  • 48