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
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 mails | Author | Date |
|---|---|---|
| Wayne Pascoe | Aug 2, 22:57 | |
| Omar Qazi | Aug 2, 23:42 | |
| Craig Hunter | Aug 3, 21:51 |






Cocoa mail archive

