Created
November 27, 2011 05:50
-
-
Save indragiek/1397046 to your computer and use it in GitHub Desktop.
NSWindow -isFullscreen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface NSWindow (Fullscreen) | |
- (BOOL)isFullscreen; | |
@end | |
@implementation NSWindow (Fullscreen) | |
- (BOOL)isFullscreen | |
{ | |
return ([self styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment