Re: CGShieldingWindowLevel question
Re: CGShieldingWindowLevel question
- Subject: Re: CGShieldingWindowLevel question
- From: sinclair44 <email@hidden>
- Date: Thu, 12 Jun 2003 13:29:44 -0400
On 6/11/03 1:54 PM, "FeiL" <email@hidden> wrote:
>
I wonder what does this mean. This function can be used after
>
CGDisplayCapture() which will bring up a shield window. But after
>
capture the display, window server will gone, how can I set the cocoa
>
window level.
>
>
I have a full screen OpenGL application and another cocoa application
>
which have a timer to check if display is captured then set the window
>
level to be the shield window level+1. I run the cocoa application
>
first and then run the full screen OpenGL, I got an error message:
>
PSsetwindowlevel, error setting window level (1001).
Try this:
- (void)startFullScreen
{
CGDisplayCapture(kCGDirectMainDisplay);
[window setLevel:CGShieldingWindowLevel()];
}
- (void)endFullScreen
{
[window setLevel:NSNormalWindowLevel];
CGDisplayRelease(kCGDirectMainDisplay);
}
Also, have a look at <
http://cocoadevcentral.com/articles/000028.php>
_______________________________________________
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.