Opening menu with keyboard
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