Skip to content

Instantly share code, notes, and snippets.

@indragiek
Created November 27, 2011 05:50
Show Gist options
  • Save indragiek/1397046 to your computer and use it in GitHub Desktop.
Save indragiek/1397046 to your computer and use it in GitHub Desktop.
NSWindow -isFullscreen
@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