• 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: Dialog drawing and the screensaver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dialog drawing and the screensaver


  • Subject: Re: Dialog drawing and the screensaver
  • From: Dominic Feira <email@hidden>
  • Date: Thu, 24 Feb 2005 16:20:18 -0500

Look up:  NSScreenSaverWindowLevel

I think you need to promote your dialog to the same level as the screen saver and then order it front.

[window setLevel: NSScreenSaverWindowLevel];
[window orderFront: nil];

As far as I can tell from the documentation orderWindow: relatvieTo: is for ordering a window relative to another window, not a windowing level.

Dominic Feira / Code Monkey / Ambrosia Software, Inc.

On Feb 24, 2005, at 3:03 PM, email@hidden wrote:

From: John Cebasek <email@hidden>

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
  • Follow-Ups:
    • Re: Dialog drawing and the screensaver
      • From: John Cebasek <email@hidden>
  • Prev by Date: Controlling startup / shutdown of a program.
  • Next by Date: Re: user defaults - NSDateTimeOrdering string
  • Previous by thread: Dialog drawing and the screensaver
  • Next by thread: Re: Dialog drawing and the screensaver
  • Index(es):
    • Date
    • Thread