• 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
Re: NSStatusItem doesn't send kAXMenuOpenedNotification when it pops up menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSStatusItem doesn't send kAXMenuOpenedNotification when it pops up menu?


  • Subject: Re: NSStatusItem doesn't send kAXMenuOpenedNotification when it pops up menu?
  • From: Bill Cheeseman <email@hidden>
  • Date: Tue, 06 Jun 2006 18:40:58 -0400
  • Thread-topic: NSStatusItem doesn't send kAXMenuOpenedNotification when it pops up menu?

on 2006-06-06 6:05 PM, Tom Bunch at email@hidden wrote:

> Ah!  My bad.  I am not observing the proper pid.  Still don't know
> how to do this, but at least now I know I'm not doing it right.  ;-)

Register the root application element, not the menu, for the AXMenuOpened
notification, then check the notification to see if it's the menu you want.

You would register the Dock application (in /System/Library/CoreServices)
for Dock menu items. I know this works, because I just did it with UI
Browser's Notifications drawer, and I see the notifications rolling in in
the Notifications Log window.

The same technique works with SystemUIServer menu items (i.e., menu extras).
Register the SystemUIServer application for the menu opened notification.

I don't know if it works with NSStatusItem menus, or with the fake menu
extras that some applications put in the menu bar, but it probably does.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSStatusItem doesn't send kAXMenuOpenedNotification when it pops up menu?
      • From: Tom Bunch <email@hidden>
References: 
 >Re: NSStatusItem doesn't send kAXMenuOpenedNotification when it pops up menu? (From: Tom Bunch <email@hidden>)

  • Prev by Date: Re: NSStatusItem doesn't send kAXMenuOpenedNotification when it pops up menu?
  • Next by Date: Re: NSStatusItem doesn't send kAXMenuOpenedNotification when it pops up menu?
  • Previous by thread: Re: NSStatusItem doesn't send kAXMenuOpenedNotification when it pops up menu?
  • Next by thread: Re: NSStatusItem doesn't send kAXMenuOpenedNotification when it pops up menu?
  • Index(es):
    • Date
    • Thread