Re: Putting up a full screen window
Re: Putting up a full screen window
- Subject: Re: Putting up a full screen window
- From: Ricky Sharp <email@hidden>
- Date: Thu, 05 Oct 2006 15:16:10 -0500
On Thursday, October 05, 2006, at 02:23PM, Adam Radestock <email@hidden> wrote:
>I've found a tutorial for creating a full screen window after
>capturing the screen, but I cannot get it to work... can anyone find
>the problem with my code? I'm really frustrated with it now! :-)
>I don't think that it is setting the window up correctly...
First question to ask is whether or not your full screen window plans to contain standard controls (i.e. buttons, etc.) or even controls of your own creation (subclass of NSControl, etc.)
If the answer to that is 'yes', then completely avoid that sample code. In fact, I wish that sample would finally be updated with notes on why it can be potentially dangerous.
For an answer as to the why, search this list archives. I know I've commented on it in the past. For the original Apple supplied reason why it's bad, search the quartz-dev archives.
Now then, if you need to go full screen and work with standard controls and events...
* Use the SetSystemUIMode API to hide Dock and/or menu bar.
* Use NSScreen APIs to put up 'blanking' windows (if needed) on all screens
* Create a borderless window for your 'content' window and place it as needed on the desired screen.
Note that if you go the blanking window route, you can set the content window as a child window of the blanking window to prevent illegal window ordering.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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