# ApplicationCommandManager with no target

**URL:** <https://forum.juce.com/t/applicationcommandmanager-with-no-target/820>\
**Category:** General JUCE discussion\
**Created:** [April 30, 2006, 11:26am UTC](https://forum.juce.com/t/applicationcommandmanager-with-no-target/820 "2006-04-30T11:26:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [April 30, 2006, 11:26am UTC](https://forum.juce.com/t/applicationcommandmanager-with-no-target/820/1 "2006-04-30T11:26:18Z")

</div>

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,

```auto

```

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…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 30, 2006, 1:20pm UTC](https://forum.juce.com/t/applicationcommandmanager-with-no-target/820/2 "2006-04-30T13:20:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [May 1, 2006, 12:11pm UTC](https://forum.juce.com/t/applicationcommandmanager-with-no-target/820/3 "2006-05-01T12:11:29Z")

</div>

maybe i’m making something weirdo… duh

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 10:02am UTC](https://forum.juce.com/t/applicationcommandmanager-with-no-target/820/4 "2017-05-12T10:02:18Z")

</div>


