Project

General

Profile

Actions

Bug #4067

closed

Add "about" widget for kepler on the mac

Added by Chad Berkley almost 15 years ago. Updated almost 15 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
installer
Target version:
Start date:
05/14/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4067

Description

after I changed kepler so it uses the native osx menu bar, there is now an "about kepler" menu item that uses a default widget. need to update that to use the kepler about screen.


Related issues

Blocked by Kepler - Bug #3949: Get the installer working with the new build systemResolvedChad Berkley04/06/2009

Actions
Actions #1

Updated by Chad Berkley almost 15 years ago

Found this:
http://developer.apple.com/documentation/Java/Reference/Java_PropertiesRef/Articles/JavaSystemProperties.html#//apple_ref/doc/uid/TP40001975

which references the system properties one can use under OSX. It says nothing about changing the default "about" dialog in the main application window. Still looking...anyone have any ideas on this?

Actions #2

Updated by Chad Berkley almost 15 years ago

Possibly need to change a key/value in the Info.plist file, but that won't work for ant runs, only when Kepler is executed from the application icon.

Actions #3

Updated by Chad Berkley almost 15 years ago

It would also be nice to figure out how to make the kepler icon show up in the apple-tab list instead of a generic "exec" icon.

Actions #4

Updated by Matt Jones almost 15 years ago

Handling the About menu is possible and described in the Java Development Guide for Mac OS X:
http://developer.apple.com/documentation/Java/Conceptual/Java14Development/07-NativePlatformIntegration/NativePlatformIntegration.html

"Apple provides functionality for this in the com.apple.eawt package. The Application and ApplicationAdaptor classes provide a way to handle the Preferences, About, and Quit items."

Examples here:
http://developer.apple.com/qa/qa2004/qa1363.html#//apple_ref/doc/uid/DTS10003370
http://developer.apple.com/samplecode/OSXAdapter/index.html#//apple_ref/doc/uid/DTS10000685

And reference info here:
http://developer.apple.com/documentation/Java/Reference/1.5.0/appledoc/api/com/apple/eawt/Application.html
http://developer.apple.com/documentation/Java/Reference/1.5.0/appledoc/api/com/apple/eawt/ApplicationAdapter.html

Setting your own icon is done, if I remember correctly, via the Info.plist file in the app bundle. However, I also just found a page that indicates it can be set on the command line too, using:
-Xdock:icon=myhome/myIcon.icns
Apple prefers icons in icns format. I think XCode has an icon editor.

Actions #5

Updated by Chad Berkley almost 15 years ago

Thanks for the info, Matt. The icon is currently set in the plist file, and it shows up fine in the Finder, but not in the bar that appears when you apple-tab between apps. I'll try to look into this more.

Actions #6

Updated by Chad Berkley almost 15 years ago

Fixed. The mac version of kepler now has an about box, it correctly exits when using apple-q and it has a new icon set that fit the standard OSX icon sizes.

Actions #7

Updated by Redmine Admin almost 11 years ago

Original Bugzilla ID was 4067

Actions

Also available in: Atom PDF