• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fullscreen windowing and NSMovieView.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Manual binding questions.
  • Next by Date: Re: Manual binding questions.
  • Previous by thread: Re: Manual binding questions.
  • Next by thread: Getting file contents as a hex string
  • Index(es):
    • Date
    • Thread