NSWindow and setLevel
NSWindow and setLevel
- Subject: NSWindow and setLevel
- From: "Aragao, Andre Augusto de (Andre)" <email@hidden>
- Date: Thu, 22 Jul 2010 13:29:28 -0600
- Thread-topic: NSWindow and setLevel
Hi,
I have a requirement to have the main window for a certain application
to stay on top of all other windows. What I found out is that if I use
anything higher than kCGNormalWindowLevel for the NSWindow level, I
achieve the expected result (for instance: kCGFloatingWindowLevel).
However, Spaces doesn't work properly. Basically, in this case I can't
see the window on Spaces anymore, for instance, if I try to show all
Application Windows (Expose, F9), the window is not displayed.
Suggestions?
#define NSNormalWindowLevel kCGNormalWindowLevel
#define NSFloatingWindowLevel kCGFloatingWindowLevel
#define NSSubmenuWindowLevel kCGTornOffMenuWindowLevel
#define NSTornOffMenuWindowLevel kCGTornOffMenuWindowLevel
#define NSMainMenuWindowLevel kCGMainMenuWindowLevel
#define NSStatusWindowLevel kCGStatusWindowLevel
#define NSModalPanelWindowLevel kCGModalPanelWindowLevel
#define NSPopUpMenuWindowLevel kCGPopUpMenuWindowLevel
#define NSScreenSaverWindowLevel kCGScreenSaverWindowLevel
#define NSDockWindowLevel kCGDockWindowLevel
Andre
_______________________________________________
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