I guess I should check if [NSApplication presentationOptions]
contains NSFullScreenModeApplicationPresentationOptions
, but how do I achieve that?>
I was just looking for a solution myself and based on Matthieu's answer I created a category on NSWindow that works fine for me.
@interface NSWindow (FullScreen)
- (BOOL)mn_isFullScreen;
@end
@implementation NSWindow (FullScreen)
- (BOOL)mn_isFullScreen
{
return (([self styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask);
}
@end