• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fullscreen Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fullscreen Window


  • Subject: Re: Fullscreen Window
  • From: Andrew James <email@hidden>
  • Date: Sat, 31 Mar 2007 08:05:10 +0930

What do you suggest then?



So how does one create such a fullscreen window?

I've done this before so I might help...

First you create a borderless window that will be used to cover the whole screen real estate.

NSRect screenRect = [[NSScreen mainScreen] frame];
NSWindow *window = [[NSWindow alloc] initWithContentRect:screenRect
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO
screen: [NSScreen mainScreen]];


Then you have to capture the display using:

if(CGDisplayCapture(kCGDirectMainDisplay) != kCGErrorSuccess) {
	/* Handle errors here */
}

When using AppKit, you shouldn't capture the display. Bad things can happen.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Fullscreen Window (From: Andrew James <email@hidden>)
 >Re: Fullscreen Window (From: Fabio Mancinelli <email@hidden>)
 >Re: Fullscreen Window (From: Ricky Sharp <email@hidden>)

  • Prev by Date: [SOLVED] nextKeyView not cycling through NSEditText fields
  • Next by Date: Re: Fullscreen Window
  • Previous by thread: Re: Fullscreen Window
  • Next by thread: Re: Fullscreen Window
  • Index(es):
    • Date
    • Thread