Alternative for using commandIds in current version (4)?

Hi,

 

I'm wondering if I'm implementing the event broadcasting mechanism after the current juce standards. I'm using commands at the moment, for instance in the receiver I got something like (below). Just to be on the save side : Is there a new way of broadcasting user interface events ?


    void MainComponent::getCommandInfo (CommandID commandID, ApplicationCommandInfo& result)
    {
        switch (commandID)
        {
            case doFirst:
                result.setInfo ("First", "Shows text", "", 0);
                break;
            case doSecond:
                  result.setInfo ("Second", "", "", 0);
                  break;
            case doThird:
                  result.setInfo ("Third", "", "", 0);
                  break;
        }
    }