Support Staff2 Posted by Joel Hooks on 11 Apr, 2012 06:08 PM
Assuming that each view is related to one specific data item,
yes? it is fine if each mediator listens/responds to the event.
What is important is that the appropriate mediator responds. You
will need to figure out how to remove the ambiguity as needed via
some sort of ID scheme that the event handler in the mediator will
check to make sure that it is the correct responder.
if that is a concern then you could alternatively mediate the
view that contains your hundreds of instances - event is then
handled in one place, and your container view would then be
responsible for directing the change in the model to the
appropriate instance - again, via some kind of id mechanism