Reputation:
I want to make a system tray without icon of Mac osx dock, just only tray icon using java code.
I developed the tray function but I cannot hide the dock icon.
Is it possible? What can i do for that? help me.
Upvotes: 1
Views: 480
Reputation: 4962
It sounds like you don't want your System Tray application to show up on the Mac's Dock when you launch it. You can do this in your application's Info.plist file. Just add these two lines:
<key>LSUIElement</key>
<string>true</string>
The Apple docs say that the LSUIElement is a Boolean property, but if you write it that way, it won't work. When you write it as a string property, it works fine.
Upvotes: 0