• 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
Detecting when an NSStatusItem is present but obscured
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Apple system icons: guidelines for use in Cocoa applications?
  • Next by Date: Re: stringWithContentsOfURL doesn't work sometimes
  • Previous by thread: FilterPredicate binding not automatically updated?
  • Next by thread: ot: dvi-d to vga
  • Index(es):
    • Date
    • Thread