My application uses NSStatusItem for visibility to the user. So I installed "Application is agent (UIElement)" in YES, which basically hides the application menu bar and hides the icon from the dock. Now I did not delete the menu bar, so I can respond to shortcuts like cmd + W to close the preferences window, or cmd + q to exit the application. The problem is that at any time when I use such a command, the menu bar is confused. I noticed that other applications that run in the background, such as Growl 2, have the same problem.

I have no idea how to fix this. I hope one of you can help me.
I am running Mountain Lion.
thanks!
HINT
This is probably due to 10.8 SKD. I have never noticed this problem before in any application.
source share