Detecting when an NSStatusItem is present but obscured
Detecting when an NSStatusItem is present but obscured
- Subject: Detecting when an NSStatusItem is present but obscured
- From: Greg Hurrell <email@hidden>
- Date: Wed, 13 Jul 2005 00:22:56 +0200
If you add an NSStatusItem to the menu bar it's possible that it
could disappear when the one or more of the following factors is at
play:
1. The screen containing the menu bar is running at a low resolution.
2. There are lots of NSMenuExtras and/or other NSStatusItems to the
right of your NSStatusItem.
3. There are lots of menus on the left-hand side of the menu bar
provided by the frontmost application.
In these cases the leftmost NSStatusItem(s) can end up disappearing
because the system displays the overlapping application-provided
menus and effectively hides the leftmost NSStatusItem(s).
Anyone know how my NSStatusItem could test to see whether it had been
covered up or not? I suspect this one might be a bit tricky; perhaps
only the Window Server knows what's covering what...
Thanks in anticipation for any ideas you might have,
Greg
_______________________________________________
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