Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fullscreen Window



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.