I could easily be missing an easier way, haven't been coding an interface recently with iPlug (or /2). But the straight-forward way would be to create a new control object that inherits from your knob. Add a data member that's of the type of your text control, and an accessor to set it, and also a mouseover override that, if it has a non-nil text control set, sends whatever to the text control.
When you create the interface in your initialization, pass the text control object pointer to your knob.
|