Bug #4418
closed
"about" box displays incorrect version number
Added by Will Tyburczy about 15 years ago.
Updated almost 12 years ago.
Category:
morpho - general
Description
When you go to "morpho > About morpho" from the computer menu bar, the version displayed is 1.0
I assume it happens on mac version. We didn't pay much attention about this. I will take a look.
This menu was added by Mac OS. We should move the morpho menu bar to the computer menu bar.
We do this in Kepler - could probably make those changes to Morpho as well.
At the very least there must be someway to change the 1.0 to a more meaningful number
We can use the AppleJavaExtensions.jar and set our own About... behavior. I've been reading about this and I think we can safely do this in a cross-platform way. I think Kepler excluded the apple-extensions module during build when it was being used on a non-Mac platforms but if we include this stub jar then we won't get compilation errors. I'll commit this and we can test it on a non-Mac platform to make sure.
The only other concern I have is if Apple changes the API in subsequent Java releases (1.7?) it will mean a change for us to support differences in Java versions. They also say that this approach is deprecated and should not be used. However their link to the "new" way of doing it is broken and I can't find any hints about an alternative approach.
https://developer.apple.com/library/mac/#/legacy/mac/library/samplecode/AppleJavaExtensions/Introduction/Intro.html
Compiled and ran on linux.
Original Bugzilla ID was 4418
Also available in: Atom
PDF