Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. - (void) windowDidEnterFullScreen:(NSNotification*) notification
  2. {
  3. NSWindow* window = [self window];
  4.  
  5. NSRect mainDisplayRect = [[NSScreen mainScreen] frame];
  6. [window setStyleMask:NSBorderlessWindowMask];
  7. [window setContentSize:mainDisplayRect.size];
  8. [window setLevel:NSMainMenuWindowLevel + 1];
  9. [window makeKeyAndOrderFront:self];
  10.  
  11. NSRect windowFrame = [window frame];
  12. windowFrame.origin.x = 0;
  13. windowFrame.origin.y = 0;
  14. [window setFrame:windowFrame display:YES];
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement