Re: key command mapping?
Re: key command mapping?
- Subject: Re: key command mapping?
- From: "Sean McBride" <email@hidden>
- Date: Wed, 9 Mar 2005 17:00:54 -0500
- Organization: Rogue Research
On 2005-02-27 21:19, Mark Dawson said:
>How do I find out what function keys map to what NSResponder method
>(such as moveUp)? I see in the Sketch example program that an up arrow
>passed through [self interpretKeyEvents:[NSArray
>arrayWithObject:event]] calls the moveUp method for the view that has
>focus. The code also implements "moveForwardAndModifySelection";
>however, I don't know what key combo invokes this method.
You mean how to know programatically? I'm not sure. Maybe you can read
it out of the key binding dictionary file. The default one is here:
/System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict
See also:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
BasicEventHandling/Tasks/TextDefaultsAndBindings.html>
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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