custom events

then you need to create your own event and call ofNotify from it. the listener should register to that object event.

take a look at the advancedEvents example

you should create an event in each of your classes not in testApp, then each object notifies it’s own event and the others listen to the event they’re interested in:

  
  
class ObjA{  
  
void someMethod(){ofNotify(eventA,arguments);}  
ofEvent<eventType> eventA;  
}  
  
class ObjB{  
  
void listenerMethod(listenerType & arguments);  
ofEvent<eventType> eventB;  
}  

then in testApp

  
  
ObjA objA;  
ObjB objB;  
ofAddListener(objA.eventA,&objB,&ObjB::listenerMethod);  

that way b only gets events from a