Ive been trying to implement a toggle button inside the toolbar, and assign a command manager to it. however i received a JUCE Assertion failure on button cpp
it had the following text:
// if you’ve got clickTogglesState turned on, you shouldn’t also connect the button
// up to be a command invoker. Instead, your command handler must flip the state of whatever
// it is that this button represents, and the button will update its state to reflect this
// in the applicationCommandListChanged() method.[/quote]
Which i dont fully understand. how would the button be able to communicate with the command manager, and send a toggle message?
how does the button know what to represent?