• 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
Opening menu with keyboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Opening menu with keyboard


  • Subject: Opening menu with keyboard
  • From: "Robert W. Kuhn" <email@hidden>
  • Date: Mon, 29 Nov 2004 14:46:12 +0100

Hello,

I have a NSStatusitem. With a hotkey (easyly done with PTHotKeysLib) I
want
to open the menu of the statusitem.

I found the tip to do that with the NSAccessibility-protocol.

But all I tried - nothing worked:


        NSApp accessibilitySetValue:myStatusItem
forAttribute:NSAccessibilityPressAction];
        [NSApp accessibilityPerformAction:myStatusItem
forAttribute:NSAccessibilityPressAction];

        [NSApp accessibilityPerformAction:NSAccessibilityPressAction];
        [myStatusItem
accessibilityPerformAction:NSAccessibilityPressAction];
        [NSApp mouseDown:nil];

What is the right solution?

Thanks and bye - Robert
 _______________________________________________
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: iSight/Address Book Image Selection UI
  • Next by Date: Re: A view to act as a cell, or vice versa
  • Previous by thread: Re: iSight/Address Book Image Selection UI
  • Next by thread: IB inspector won't load [Really Solved]
  • Index(es):
    • Date
    • Thread