• 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: [Q] key Event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] key Event


  • Subject: Re: [Q] key Event
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 7 Nov 2001 11:02:21 -0800

On Wednesday, November 7, 2001, at 10:40 AM, Lizardo H. C. M. Nunes wrote:

Hi,

Again, I have a simple question and I'd really appreciate if somebody could
point me to documentation

How can I assign certain keys to be the trigger of a certain method; I mean,
once a given key was pressed, a message should be sent to the receiver.

Basically, when a key is pressed, the frontmost application attempts to find an object that deals with -keyDown: events. Whichever object gets that message (which is determined by the responder chain) is the one that gets the chance to deal with the key event.

Read up on NSResponder, and the Responder Chain.

-jcr


"I fear all we have done is to awaken a sleeping giant and fill him with a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.


References: 
 >[Q] key Event (From: "Lizardo H. C. M. Nunes" <email@hidden>)

  • Prev by Date: [Q] key Event
  • Next by Date: Re: NSData from NSMovie ?
  • Previous by thread: [Q] key Event
  • Next by thread: Menu item enabling when NSView is first responder?
  • Index(es):
    • Date
    • Thread