| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
| References: | |
| >Fullscreen Window (From: Andrew James <email@hidden>) | |
| >Re: Fullscreen Window (From: Fabio Mancinelli <email@hidden>) | |
| >Re: Fullscreen Window (From: Ricky Sharp <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.