I’ve got an application that calls JUCEApplication::quit() when it sees a USB device pulled out. On Windows it works great. On the Mac the application stays on the screen until I move the mouse or hit a key on the keyboard. It is as if the quit message to the Window is not being handled until some other messages get put the Window’s message queue?
My sloppy fix is to hide the window after calling JUCEApplication::quit() (setVisible(false)). This works except that the application still appears in the dock until you move the mouse.