Re: NSScreenSaverWindowLevel
Re: NSScreenSaverWindowLevel
- Subject: Re: NSScreenSaverWindowLevel
- From: Mike Paquette <email@hidden>
- Date: Wed, 11 Feb 2004 09:59:20 -0800
A full screen GL context doesn't work well with other processes poking
at where they think the framebuffer might be.
The full-screen GL context may place the hardware in states that cannot
be supported by the window system. That's why the documentation on
using full-screen GL contexts recommends capturing the display,
removing the display from the window system.
There are some clever hacks out there that will get a window on a
captured display in some circumstances, however, this will definitely
not work on all hardware, particularly not with an OpenGL full-screen
context.
If an application has captured the displays and wants to present a
window or other UI elements, then the application must release the
display first. If an application needs to present windows and other
UI elements during it's operation, then instead of capturing the
display, it should use a full screen plain-style window and use
HideMenubar() to remove the Dock and menu bar.
Mike Paquette
On Feb 11, 2004, at 9:18 AM, Lorenzo wrote:
Hi,
I want to display an alert window over my openGL full screen window.
I need that to notify to the user, after 10 minutes, that the demo
version
can run only for 10 minutes.
But even if I set the window level to NSScreenSaverWindowLevel
my window doesn't come up. When I quit the application I can see for a
second that the window is there, just beyond the full screen openGL
window.
How can I put my window over the full window?
Or should I better close firstly the full window and then diplay the
alert
window? I would like to let the user continue to use the app without
some
features... so the last solution should not work so well.
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.
_______________________________________________
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.