I have set all the Servoy Branding settings properties. When I am lunching the Servoy Client from a PC, desktop icon is created successfully with the Icon that I have specified in the “servoy.branding.webstart.loadinglogo” property, but for a MAC, it is ended up with a coffee cup icon. Do I need to set any other property to work for MAC?
I spoke Jan Aleman on chat, and there seems to be some other java Mac specific properties to make this work.
He filed a request to his own dev-team herefore.
There is no way to set a custom Dock icon or menu from Java.
Description:
There has been no way to set a custom Dock icon, set a Dock icon badge, or add a custom popup menu to a Java application’s Dock icon.
Resolution:
New API has been added to the com.apple.eawt.Application object to support setting and getting the Dock icon image, setting a custom red badge on the icon (like Mail’s unread count), and setting and getting a custom popup menu that is prepended to the standard Dock menu items.
I hope Servoy can find some time, to implement this for OSX
(I really hate that coffeecup in the dock and on the desktop )
Harjo:
I hope Servoy can find some time, to implement this for OSX
(I really hate that coffeecup in the dock and on the desktop )
I really think it’s time to get rid of that ugly Java icon for Servoy (5) client apps on Mac.
It looks cheap and unprofessional (especially compared to all other Mac icons in the dock of a customer).
Isn’t there some sort of workaround for this, ServoyTeam ?
Or even better: a permanent fix ?
I agree with you that the coffecup is not very nice.
I have a little workaround but it is not automaticaly. You have to do this at each Mac.
You can change the icon:
For example:
right-click on the icon of the Servoy-application on the desktop. Goto info: (Dutch: toon-info)
In the window with the info about the application (name, size, security) you have in the top-left the icon image (small on the top. Not the image in the preview).
Drag with your mouse an image (for example opened in Safari) above the image in the info window. Hold the image with your left mouse button.
The mouse will let you see a PLUS sign above the image in the info-window.
Drop the image / release left mouse-button.
Icon of the application is changed into the new image.
When you drag the Servoy-application from the desktop to the dock the new icon will attach to the dock. When you have already placed the application (with coffecup) in the dock you have to remove this one first.
For deployment to new Mac Clients it would be much nicer that it could be automated by Servoy. Just like on Windows.
Maybe it is also possible with AppleScript.
Sjoerd:
Hello Karel,
I agree with you that the coffecup is not very nice.
I have a little workaround but it is not automaticaly. You have to do this at each Mac.
Hi Sjoerd, thanks for thinking along, but no thanks.
I did know you can manually modify an app icon (I’m a Mac user since '89), but I want this to be done automaticly during deployment.
The icon did work in earlier versions of Java and Servoy RC for Mac, so this should be a doable fix, I’dd say…