when I quit my application using Cmd+Q on Mac OS X, the LeakedObjectDetector hits from within MessageManager::runDispatchLoop. The method systemRequestedQuit of my application is never called which would clean up the remaining objects.
I was wondering if it is correct that using Cmd+Q does not trigger systemRequestedQuit().
I cross checked my issue with the JUCE Demo. It is as you said, but sadly that does not change my issue.
In my application not even JUCEApplicationBase::appWillTerminateByForce() is called, even when I put a hard crash into it, it does not trigger so it can also not be a debugger issue.
I use custom code to create my application object but of course stick to the JUCEApplication class for it.
Do you have a suggestion why the event handler does not seem to be in place?
Also when I register application commands with shortcuts they do not work, maybe that is related.
I attached my callstack and the one from the demo, maybe that gives someone an idea what could be wrong.
Ah, if you're going off-piste and doing the startup process yourself, then all bets are off. But yes, as long as you use those initialiser functions, that should be most of what you need.