• 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
Can't Draw To Secondary Monitor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't Draw To Secondary Monitor


  • Subject: Can't Draw To Secondary Monitor
  • From: Joshua Orr <email@hidden>
  • Date: Sun, 27 Apr 2003 19:16:06 -0600

I have a program that plays a video in a window. When the users wants to go
to full screen, the program gets the current screen the window is in, then
releases it, then it creates a new window in that screen with a window level
that the CGShieldingWindowLevel() function returns.

This works just fine for the main screen, but in a secondary screen it seems
to cover the secondary monitor with a black window, but it does not display
anything in it. It's always black. But when on the main monitor it
displays the movie just fine.

Can anyone help? I need to fix this fast... Any help would be appreciated!


Here is basically what the code does when it goes full screen:

NSScreen *theScreen = [mainWindow screen];

[mainWindow orderOut:self];
[mainWindow release];

screenRect = [theScreen frame];

windowLevel = CGShieldingWindowLevel();

mainWindow = [[NSWindow alloc]
initWithContentRect:screenRect
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO
screen:[NSScreen mainScreen]];

[mainWindow setLevel:windowLevel];

-Joshua D. Orr-
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Can't Draw To Secondary Monitor
      • From: Michael Latta <email@hidden>
  • Prev by Date: Saving field editor changes
  • Next by Date: Re: OSX EightyRes ?
  • Previous by thread: Re: Saving field editor changes
  • Next by thread: Re: Can't Draw To Secondary Monitor
  • Index(es):
    • Date
    • Thread