Skip navigation.
 
mlRe: The right way to build a full screen app
FROM : Omar Qazi
DATE : Wed Aug 02 23:42:06 2006

On Aug 2, 2006, at 1:57 PM, Wayne Pascoe wrote:
> The tutorial at http://cocoadevcentral.com/articles/000028.php 
> seems to be a little out of date and some of the detail is quite 
> unclear to me (e.g. create a controller - what kind of controller?)


NSView *contentView = GetFullScreenWindowContentViewSomeHow(); //Get 
the content view of you new full screen window

NSWindow *fullScreenWindow = [[NSWindow alloc]initWithContentRect:
[[NSScreen mainScreen]frame] styleMask:NSBorderlessWindowMask 
backing:NSBackingStoreBuffered]; //Create a borderless window the 
size of the screen


[fullScreenWindow setLevel:CGShieldingWindowLevel()];


[fullScreenWindow setContentView:contentView];

CGDisplayCapture(kCGDirectMainDisplay);

[fullScreenWindow makeKeyAndOrderFront:nil];

Omar Qazi
ROFL Software

Related mailsAuthorDate
mlThe right way to build a full screen app Wayne Pascoe Aug 2, 22:57
mlRe: The right way to build a full screen app Omar Qazi Aug 2, 23:42
mlRe: The right way to build a full screen app Craig Hunter Aug 3, 21:51