Does anyone else have problems with menu handlers not firing at all in 2020r2.1?
As far as I can see the problem is a Rosetta one. First I thought that the problem was only in the debugger. But it’s in the built app, too. I’ve also gotten reports from the first testers. “App quit only on the third try”.
I can reliably reproduce the behaviour in the debugger today. This does not fire any menu handler:
Should have been clearer: Doing any menu shortcut with Cmd-Q or Cmd-R doesn’t work at all sometimes. Selecting the menu item from the menu always works fine. I’ve set breakpoints in the debugger in the menu handler. Those don’t fire.
In the second screenshot I have loaded data into the NSTableView.
There was no crash. This happens straight when starting the app - either in the debugger or when building.
So, open a Feedback case with an example, or maybe you won’t see a fix. Explain the problem and how to reproduce it in few words, using latest Xojo, and tell them your OS version. No need to use your app as example.
I’ve seen a (possibly related) problem in the IDE for years - most commonly, when Remote debugging, for which the key combo is Option Command R. I can remote debug this way about half a dozen times, but at some point it simply stops working.
It feels like it may depend on what windows/tabs/panels/controls are visible or in focus?
That’s a different bug In my case, when Command-Option-R no longer works, clicking the Remote Debug menu with the mouse still works. It’s pretty clear that it’s the menu shortcut keys not working in this case.
Also: I notice in recent IDE versions, I can no longer quickly type:
Command S (save)
Command R (run)
Often the Command R will beep.
In older IDEs, the fast combo of Command S, Commmand R would save and run 100% reliabilty.
Did something change witih menu handling event code?
If I remember correctly, one of the macOS SDK updates caused menu hotkeys to not “queue up” for execution and so the ability to press Command-R before Command-S was complete was lost and now you actually have to wait.
I found 2 menuitems with the same shortcut. Ahem - this has been working since forever. After removing the second shortcut the menuitems worked after clicking somewhere.
I then started removing classes. As a total surprise an off-window container with a html viewer that I use for printing and PDF generation was the culprit. After moving the container to an additional pagepanel everything now works fine.