After updating to JUCE 6.1 (from 6.0.8), I have multiple issues with NativeMessageBox on both Mac and Windows.
-
The messagebox started to return immediately with zero without waiting for the user to press any buttons. I noticed this was caused by the added JUCE_MODAL_LOOPS_PERMITTED check in
ShowDialog
. I had to add JUCE_MODAL_LOOPS_PERMITTED=1 to the preprosessor definitions to get it working like before. Is this intended and the correct way to fix this? I did not see an option in Projucer anywhere for specifying this, which would have been nice if this is indeed the required way to restore old behaviour. -
The return values have swapped and the documentation is wrong. Pressing “yes” / “ok” now returns zero instead of one like before. OkCancelBox will now return false when OK was pressed.
-
The message box does not block the GUI anymore like I need it to. I am showing an update message to the user (“update available, do you want to download?”), and I need the MessageBox to block the main GUI while this popup is shown. This no longer works on Windows (10), but it does on Mac.