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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to