Re: NSMenuDelegate - menuNeedsUpdate:(NSMenu *): can I get key(s) pressed?
Re: NSMenuDelegate - menuNeedsUpdate:(NSMenu *): can I get key(s) pressed?
- Subject: Re: NSMenuDelegate - menuNeedsUpdate:(NSMenu *): can I get key(s) pressed?
- From: Jerry Krinock <email@hidden>
- Date: Tue, 28 Oct 2014 20:38:21 -0400
> On 2014 Oct 27, at 20:14, Jim Prouty <email@hidden> wrote:
>
> Is there code I can write to get the key(s) pressed during NSMenuDelegate's menuNeedsUpdate:nsmenu method?
Maybe override both -keyDown: and -keyUp: somewhere in your responder chain, and keep track of which key is currently down with your own code. Should be easy for a Carbon guy, Jim :)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden