Making a component into a Broadcaster


#1

I read the Broadcaster and Listener tutorial. And I see how to make a Component a Listener of a specific kind of control like Slider or Button etc.

But I want to make my custom child Component a Broadcaster which the main Editor of my plugin Listens to.

Any examples of that?

Is it as simple as inheriting it from a Broadcaster base-class?


#2

Yes, and by doing that you get the addChangeListener(), the removeListener() and the sendChangeMessage() that you need.


#3

Cool