OS/X GUI applications

Michael Hall mik3hall at gmail.com
Sat Dec 31 22:47:06 UTC 2022


> 
> Fwiw, I did a little more looking at this.
> 

Additionally FWIW, I tracked the handling through on this and it all looked good. I entered a null dispatch at the end and got the dialog fine for a javaFX app.

The problem is simply that the About menu item is never added for javaFX app’s.

In ApplicationDelegate…
NSLog(@"ApplicationDelegate init fAboutMenu %@", self.fAboutMenu);

Gets...
2022-12-31 16:13:30.892 HelloWorld[42268:1553617] ApplicationDelegate init fAboutMenu <NSMenuItem: 0x60000172abc0 Hide HelloWorld, ke='Command-H’>

Showing the About menu item is assumed there at this point but it isn’t, fAboutMenu is instead the Hide item. It manages to run fine while being wrong about this, although this seems a bug already with this bad assumption.

There are places where it suggests on occasion a default menu bar is installed. I’m thinking possibly for some reason it decides to do this for javaFX apps and it is without the About item?
Other places it seems to decide whether or not to use a default nib, might factor in. I’m not that familiar with any of this. 

Right now I’m having problems backtracking to where the menu’s are initially handled, I’m not hitting any of my additional sophisticated println and NSLog debugging for some reason.

I will probably keep looking but would appreciate it if anyone has any suggestions where that looking should be done. 

Otherwise, I would say only the jdk is involved at this point so it would be a bug on that side, not javaFX. If you want to just go ahead and call it that I guess I can leave it at that. 




More information about the client-libs-dev mailing list