Re: Capturing key events in a menu

2009-05-19 Thread Adam Warski
Hello, On May 19, 2009, at 4:28 PM, Benjamin Stiglitz wrote: 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: what are you trying to achieve? Well,

Re: Capturing key events in a menu

2009-05-19 Thread Benjamin Stiglitz
>> 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: what are you >> trying to achieve? > > Well, I want to know what the user typed when a menu is ope

Re: Capturing key events in a menu

2009-05-18 Thread Adam Warski
Hello, ...but I first need to ask the standard question: waht are you trying to achieve? Adding: mention the scope too - do you want to do this for your app or all apps and maybe even the Apple menu too? What about context menus? NSPopUpButton menus and the like? I want to do this for one m

Re: Capturing key events in a menu

2009-05-18 Thread Adam Warski
Hello, 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? Well, I want to know what the user typed when a menu is open, s

Re: Capturing key events in a menu

2009-05-18 Thread I. Savant
On Mon, May 18, 2009 at 3:14 PM, Benjamin Stiglitz wrote: > ...but I first need to ask the standard question: waht are you > trying to achieve? Adding: mention the scope too - do you want to do this for your app or all apps and maybe even the Apple menu too? What about context menus? NSPopUpBu

Re: Capturing key events in a menu

2009-05-18 Thread Benjamin Stiglitz
> 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