> Basically, I want to do quite a simple thing: capture a "keyDown" event 
> when a menu is opened. So the user opens a menu, presses a key and I want 
> to know what key it was.
> Unfortunately NSMenu isn't an NSResponder, so I can't capture it there. 
> Also, the event isn't passed down to NSApp (where I could capture it in a 
> subclass or delegate), as the menu handles it to position the higlight on 
> the appropriate letter. Can I somehow override that behaviour?

When a menu is open the Menu Manager in HIToolbox handles incoming
events on its own. You be able to capture the events with an embedded
NSView, but I first need to ask the standard question: waht are you
trying to achieve?

-Ben
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to