I have a java application which has a tray icon in the top menu bar of OSX. When I minimize the application I would like it to disappear from the dock and the command-tab application switcher and only be in the tray. I've seen other OSX applications do this, so I do believe it is possible, but as a newbie to OSX I have no idea how to achieve it.
Any help would be appreciated!
Steps to follow: Start Dock Dodger (you might have to allow opening this app from your macOS Security Settings because it's an unidentified 3rd party developer. Drag-and-drop the Application you want to hide on the Dock Dodger window. Quit Dock Dodger. Simply (re)start the Application you want to hide.
You can hide one App or every other App than the one you're using. You'll find this command in the menu next to the Apple menu is the Application Menu. It'll be whatever the name of the application you're currently using. In this menu is the choice to Hide – Command+H.
On your Mac, choose Apple menu > System Preferences, then click Dock & Menu Bar . In the Dock & Menu Bar section in the sidebar, change the options you want. For example, you can change how items appear in the Dock, adjust its size, locate it along the left or right edge of the screen, or even hide it.
To switch between open apps, press Command-Tab. Release the keys when the app you want is selected.
As it turns out, SWT 3.5 had a bug which prevented it from properly reacting to the Info.plist that OSX requires to hide the application. This bug is fixed in SWT 3.6, and with Eclipse Helios being released today, I believe SWT is now officially at version 3.6
To achieve the hidden icon, at the top of your info.plist file you simply need to add the following line:
<key>LSUIElement</key>
<true/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With