• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: key command mapping?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: key command mapping?
      • From: Scott Thompson <email@hidden>
  • Prev by Date: Re: NSString's compare: doesn't work...
  • Next by Date: Re: key command mapping?
  • Previous by thread: Re: NSString's compare: doesn't work...
  • Next by thread: Re: key command mapping?
  • Index(es):
    • Date
    • Thread