Graphics Error Using NSStatusItem

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.

Menubar graphics error

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.

+4
source share
1 answer

How do I move the Window menu to the Application Menu submenu and then hide it? Youโ€™ll still get shortcuts, and the highlighted menu is the applicationโ€™s menu, which is there anyway (I assume that youโ€™ll also open the settings window?) Also abbreviated?).

+1
source

Source: https://habr.com/ru/post/1434464/


All Articles