Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void) windowDidEnterFullScreen:(NSNotification*) notification
- {
- NSWindow* window = [self window];
- NSRect mainDisplayRect = [[NSScreen mainScreen] frame];
- [window setStyleMask:NSBorderlessWindowMask];
- [window setContentSize:mainDisplayRect.size];
- [window setLevel:NSMainMenuWindowLevel + 1];
- [window makeKeyAndOrderFront:self];
- NSRect windowFrame = [window frame];
- windowFrame.origin.x = 0;
- windowFrame.origin.y = 0;
- [window setFrame:windowFrame display:YES];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement