I need my application to ask the user confirmation when the close button of the main window is pressed.
However, when enabling usingNativeTitleBar on OSX, clicking the “close” button of the main window will quit the application no matter what. The DocumentWindow::closeButtonPressed() virtual function is called, shows the confirmation popup, but I can’t avoid the closing of the application…
This does not happen when using the juce titlebar and the native titlebar on windows.
What’s required to prevent this unconditional application exit with the native OSX titlebar ?