Fullscreen windowing and NSMovieView.
Fullscreen windowing and NSMovieView.
- Subject: Fullscreen windowing and NSMovieView.
- From: James Andrews <email@hidden>
- Date: Sun, 23 Jan 2005 16:42:05 -0500
Simple enough using the code below I created a method go make a panel
go full screen. (some vars defined out of this method.). On the Panel
is an NSMovieView and an NSButton. When I run my app, and start a
movie, I can toggle fill into full screen, and can tell that it's my
panel becayse the button is there, but the NSView is not. If I watch
the panel in normal mode, the movie is there. What am I missing?
Method below.
-James
- (IBAction) fullScreenShow:(id)sender{
int windowLevel;
NSRect screenRect;
if(CGDisplayCapture(kCGDirectMainDisplay) != kCGErrorSuccess){
NSLog(@"couldn't capture the main display!");
}
windowLevel = CGShieldingWindowLevel();
screenRect = [[NSScreen mainScreen] frame];
mainWindow = [[NSWindow alloc] initWithContentRect:screenRect
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO screen:[NSScreen mainScreen]];
[mainWindow setLevel:windowLevel];
[mainWindow setBackgroundColor:[NSColor blackColor]];
[mainWindow makeKeyAndOrderFront:nil];
[movieWindow setFrame:screenRect display:YES];
[mainWindow setContentView:[movieWindow contentView]];
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden