• 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
NSWindow Level Side Effect - PopUp to Normal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindow Level Side Effect - PopUp to Normal


  • Subject: NSWindow Level Side Effect - PopUp to Normal
  • From: Caylan Larson <email@hidden>
  • Date: Mon, 28 Oct 2013 19:32:35 -0500

When my app is active its windows are set to NSPopUpMenuWindowLevel.  This is to capture main menu screen real estate inside of its frame (it’s a “scope”-type utility: www.labelscope.com).  When I receive applicationDidResignActive, I set all windows as NSNormalWindowLevel.  Problem is, the newly active app (whatever it may be) is still underneath my window(s) for one more click.  The newly active application has key/main - but my app window is on top.  Then, I click once more within the newly active app and my window goes behind.  My window is not a ghost - because clicking anywhere on it will activate my app once again.

I tried to stash the window’s level before changing it to NSPopUpMenuWindowLevel and set it back - that didn’t work.

I tried to get all screen windowNumbers, remove my own app’s window numbers, and then -orderWindow:NSWindowBelow relativeTo:topForeignWindow, but that didn’t work, either.

I can orderBack and my window goes way back, but this probably isn’t what the user expects.

How do I hover my window above the main menu without getting this strange side-effect?

Caylan


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSWindow Level Side Effect - PopUp to Normal
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: MultiBinding
  • Next by Date: Re: NSWindow Level Side Effect - PopUp to Normal
  • Previous by thread: Re: MultiBinding
  • Next by thread: Re: NSWindow Level Side Effect - PopUp to Normal
  • Index(es):
    • Date
    • Thread