Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>it's easy... if you know how :) </p> <p>first wrap your jar file in a mac application bundle </p> <ul> <li>either use the "jar bundler" app that comes with the mac developer tools</li> <li>or use the -unrelated- jarbundler ant task <a href="http://jarbundler.sourceforge.net/" rel="nofollow">http://jarbundler.sourceforge.net/</a></li> </ul> <p>then go into the contents of your generated package and open the info.plist. there just add the LSUIElement property and set it to 1. this removes the application from the dock when started. also see the apple docs here: <a href="http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html" rel="nofollow">http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html</a></p> <hr> <p>for completeness: there's also another way to do this, but it's much more painful. there is a cocoa command that allows you to show/hide the dock icon dynamically: SetSystemUIMode (https://developer.apple.com/library/mac/#documentation/Carbon/reference/Dock_Manager/Reference/reference.html) you could either try to call this command using rococoa or write your own jni lib. alternatively i would have an xcode project which does something very similar -hide the menu bar- in my github account: <a href="https://github.com/kritzikratzi/jAppleMenuBar/" rel="nofollow">https://github.com/kritzikratzi/jAppleMenuBar/</a> you'd only have to change some parameters in the src/native/jAppleMenuBar.m file. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload