Re: LevelWindow for Dashboard?
Re: LevelWindow for Dashboard?
- Subject: Re: LevelWindow for Dashboard?
- From: glenn andreas <email@hidden>
- Date: Thu, 25 Aug 2005 11:32:34 -0500
On Aug 25, 2005, at 10:40 AM, Stephane Sudre wrote:
I need to put a specific window over the dashboard blackboard.
I've got to ask "why"?
Playing with the [NSWindow setLevel:]; method, it's easy to find
that the Dashboard level is 100.
Now, the question is: how do I get this value properly?
Th CGWindowLevel (or is CGLevelWindow) header is not defining any
constant for the dahsboard blackboard.
And tests with apparently obvious consts did not bring correct
results.
Is it bad to use the 100 constant? (Yes, I guess).
Is it safe?
I'd bet "no" and "no" (since all the kCGFooWindowLevel values are
actually macros that call the runtime function CGWindowLevelForKey
with different keys, which means that the result will be calculated
at run time, and thus could easily be changed)
However, you could apply deductive reasoning that Widgets have popup
menus, and popup menus appear in kCGPopUpMenuWindowLevel, and so for
popup menus to appear above the Widget, Widgets would be in a lower
level (and so using kCGPopUpMenuWindowLevel aka
NSPopUpMenuWindowLevel should do the trick).
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
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