Workaround: Disabling Menus In Cocoa Dialogs

In Cocoa, Modal Dialogs no longer disable menu items. See <https://xojo.com/issue/28700>

This could cause problems of code running when you are expecting your app to be in a modal state.

Just thought I’d share this rough workaround that will disable all menus, except File-Quit/Exit if a modal dialog is up.

You should exclude Undo, Cut, Copy, and Paste too.

To me… a safer bet (and it works x-platform too)… is create a “dummy looking menu” and assign it to all your dialog boxes

That way it is all handled automatically for you.