ApplicationCommandManager with no target


#1

i’ve built an application with the manager for commands, and before adding my command i registered a menu with only the common application Quit command,

i don’t know why but is shown in grey (disabled).
but if i register a target before registering the

commandManager->registerAllCommandsForTarget (contentComp); commandManager->registerAllCommandsForTarget (JUCEApplication::getInstance());
then the Quit menu item command is enabled…
is this behaviour wanted ? dunnow…


#2

I just tried this myself with the demo app and it works fine…?


#3

maybe i’m making something weirdo… duh


#4