Desktop Icon is created for PC but for Mac; still Coffee Cup

Questions, answers, tips and ideas on Servoy Client

Desktop Icon is created for PC but for Mac; still Coffee Cup

Postby Infop » Wed Aug 26, 2009 11:03 am

Hi All,

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?

Thanks.
User avatar
Infop
 
Posts: 151
Joined: Fri Nov 30, 2007 3:00 pm

Re: Desktop Icon is created for PC but for Mac; still Coffee Cup

Postby Harjo » Wed Aug 26, 2009 12:11 pm

this is a long standing issue with Servoy :-(

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.

Don't know the status.....
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Desktop Icon is created for PC but for Mac; still Coffee Cup

Postby Harjo » Wed Aug 26, 2009 12:22 pm

I have dugged some deeper where Jan talked about:

You can find it here:
http://developer.apple.com/releasenotes ... ssues.html

Java Toolkit

Radar #5420927

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 :twisted: )
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Desktop Icon is created for PC but for Mac; still Coffee Cup

Postby Infop » Wed Aug 26, 2009 1:09 pm

Thanks for a quick reply Harjo.
User avatar
Infop
 
Posts: 151
Joined: Fri Nov 30, 2007 3:00 pm

Re: Desktop Icon is created for PC but for Mac; still Coffee Cup

Postby Infop » Wed Aug 26, 2009 3:56 pm

Is there any update regarding this in TANO?
User avatar
Infop
 
Posts: 151
Joined: Fri Nov 30, 2007 3:00 pm

Re: Desktop Icon is created for PC but for Mac; still Coffee Cup

Postby Karel Broer » Sun Jan 03, 2010 9:45 pm

Harjo wrote:I hope Servoy can find some time, to implement this for OSX
(I really hate that coffeecup in the dock and on the desktop :twisted: )

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 ? :wink:
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Re: Desktop Icon is created for PC but for Mac; still Coffee Cup

Postby Sjoerd » Mon Jan 04, 2010 12:29 am

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.

You can change the icon:
For example:
1. 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).
2. 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.
3. 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.

Regards,

Sjoerd Hannema
Sjoerd
 
Posts: 12
Joined: Wed Feb 14, 2007 10:03 pm
Location: Leeuwarden - Netherlands

Re: Desktop Icon is created for PC but for Mac; still Coffee Cup

Postby Karel Broer » Mon Jan 04, 2010 12:50 am

Sjoerd wrote: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..

Btw, I'm not a Java expert, but isn't this something that would help fix this issue?
http://developer.apple.com/mac/library/documentation/Java/Reference/1.5.0/appledoc/api/com/apple/eawt/Application.html#setDockIconImage%28java.awt.Image%29
Last edited by Karel Broer on Mon Jan 04, 2010 12:59 am, edited 1 time in total.
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Re: Desktop Icon is created for PC but for Mac; still Coffee Cup

Postby Harjo » Mon Jan 04, 2010 12:58 am

It will be fixed in the next release of Servoy 5! ;-)
I got a notification of an issue I filed.
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Desktop Icon is created for PC but for Mac; still Coffee Cup

Postby Karel Broer » Mon Jan 04, 2010 1:01 am

Harjo wrote:It will be fixed in the next release of Servoy 5! ;-)

That's very good news Harjo, thanks! 8)
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 4 guests