bool NSViewComponentPeer::isFullScreen() const
{
if ([window styleMask] & NSFullScreenWindowMask) //added by Me
return true;
else return fullScreen;
}
I was trying to use the getKioskModeComponent to find out if we are in fullscreen, but apparently, the kioskModeComponent is not set when user press the fullscreen button on the title bar.
But anyway, we should setup enter/leave fullscreen notification in order to catch the chance to set kioskModeComponent properly. So we can just use getKioskModeComponent to get the current fullscreen state.
Has something like this been done already? I was pleasantly surprised to see that Lion fullscreen app mode is just working with the latest version of Juce. I’m now looking at how to best coordinate that with a toolbar button that previously used kiosk mode.