Dialog drawing and the screensaver
Dialog drawing and the screensaver
- Subject: Dialog drawing and the screensaver
- From: John Cebasek <email@hidden>
- Date: Thu, 24 Feb 2005 14:38:54 -0500
Hi All:
I've got a dialog that is to be displayed after the screensaver is dismissed (and the screen is still black).
My dialog is there as my logging records all events that are sent to the dialog.
I thought that showing the window above the screensaver layer would be enough (ala:
- (void)showLoginWindowAboveSS
{
trace.stream() << "Trying to make window above NSScreenSaver" << endl;
[window_ orderWindow:NSWindowBelow relativeTo:NSScreenSaverWindowLevel];
// [window_ orderFrontRegardless];
trace.stream() << "*** Window is at: " << window_ << endl;
}
And as you can see, I tried orderFrontRegardless.
And the dialog is 'managed' by:
NSModalSession modalSession = [NSApp beginModalSessionForWindow:lWindow];
int modalResult;
do
{
modalResult = [NSApp runModalSession:modalSession];
if (modalResult == NSOKButton)
{
[NSApp abortModal];
[NSApp endModalSession:modalSession];
}
} while (modalResult == NSRunContinuesResponse);
Anyway, I must be missing a small peice of information. How do I get my dialog 'punched through' the screensaver?
Thanks in advance for your time
John Cebasek
_______________________________________________
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