Hi there,
Been getting my head round the ways to set up comunication between classes. When its a case of events being passed along a chain (eg button broadcasts event to interface which broadcasts event to manager) I have no problem, but how should I be dealing with a situation that requires bi-direction comunication?
For example I have an mp3Player class which broadcasts button events to a mediaManager class and I have a listbox Item class that broadcasts events to a listbox manager class. I need button events in the mp3player class to effect the listbox Item class and vice versa.
How should I be setting this up? Should the listbox manager broadcast events and subscribe to the mediaManager class and vice versa? Or should I have a new class which subscribes to listen to events from both and passes them accross?
Thanks