minimiseButtonPressed/maximiseButtonPressed handlers aren't called?


#1

When using native title bar on Mac, the minimiseButtonPressed/maximiseButtonPressed callback aren’t called…

If its not meant to be called using native title bar, is there any way to detect minimizing/maximizing?

EDIT:
Digging a bit into the JUCE implementation i see that JUCE is missing some callbacks indeed. Is has “windowShouldClose”, but not “windowWillMinaturize”.

Apple reference:
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/NSWindowDelegate_Protocol/#//apple_ref/occ/intfm/NSWindowDelegate/windowWillMiniaturize:


#2

Not sure if it’s actually possible on all platforms to intercept all those events, but yes, the DocumentWindow only attempts to call those methods when using the juce-based buttons, not the native behaviours