• 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
Re: Full screen tiny issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Full screen tiny issue


  • Subject: Re: Full screen tiny issue
  • From: Nicholas Buratovich <email@hidden>
  • Date: Tue, 27 Jun 2006 12:55:03 -0700

Tue, 27 Jun 2006 11:55:09 -0500 Rick Sharp wrote:

One way to display the full screen window is to capture the display and launch the window. Here is the sequence you need to follow,

Use the CGDisplayCaptureWithOptions to capture the display (This will block all other applications to draw on screen) Get the window level using CGShieldingWindowLevel. Create a window and set the window level. Display the window.

Don't do this. You should only ever capture the display if you plan to not display any standard Cocoa windows/controls (i.e. you're doing your own direct drawing). Definitely search the archives for reasons for the problems.

In the Cocoa Drawing Guide on ADC under "Advanced Drawing Techniques" there is a section about fullscreen drawing in Cocoa. Capturing the screen and setting the NSWindow level to CGShieldingWindowLevel is the recommended technique for fullscreen drawing and sample code for that is provided. You can check it out here: http:// developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/ AdvancedDrawing/chapter_9_section_4.html (the list might mangle the URL but you get the idea).


I do recall when I searched the archives on this subject a while back (last year or before I think) there some serious discussion about this. There were a lot of "this isn't supported, don't do it" warnings and "but it works, why not?" replies. To my recollection the discussion basically ended with someone asking "well then what is the supported way?" with no response.

Since Apple has this technique documented in the drawing guide should we now consider this a supported way to do fullscreen drawing in Cocoa? Or is there something I am missing that needs clarification?

- Nicholas Buratovich
_______________________________________________
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


  • Follow-Ups:
    • Re: Full screen tiny issue
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: NSFindAndReplace
  • Next by Date: Re: Getting the parent process name
  • Previous by thread: Re: Full screen tiny issue
  • Next by thread: Re: Full screen tiny issue
  • Index(es):
    • Date
    • Thread