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,
>> 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
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
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
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
> 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