vassalengine / vassal

VASSAL, the open-source boardgame engine
https://vassalengine.org
GNU Lesser General Public License v2.1
402 stars 96 forks source link

Menu bar MacOS compatibility #13391

Open riverwanderer opened 2 weeks ago

riverwanderer commented 2 weeks ago

I've started seeing the following report in the Vassal error log:

2024-06-16 07:10:04,202 [41377-ProcessLauncher-2] WARN VASSAL.tools.logging.LoggedOutputStream - 2024-06-16 07:10:04.202 java[41390:3614026] *** WARNING: References to Carbon menus are disallowed with AppKit menu system on macOS 14 and newer. Use instances of NSMenu and NSMenuItem directly instead. See https://developer.apple.com/documentation/macos-release-notes/appkit-release-notes-for-macos-14#Menus

The message is generated whenever a module is opened either in the Player or the Editor.

Possibly related (or not), when a module is opened in the Editor, the last two menu bar items are missing, as if opened in the Player:

image

Normally, I would expect to see this and, in fact, simply clicking on the menu bar restores the missing items:

image

I have not noticed any other adverse behaviour.