• 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: HElp with NSResponder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HElp with NSResponder


  • Subject: Re: HElp with NSResponder
  • From: Allan Odgaard <email@hidden>
  • Date: Wed, 10 Mar 2004 11:02:04 +0100

On 10. Mar 2004, at 8:57, email@hidden wrote:

Well I made a subclass of NSResponder called controller. controller basically is supposed to be the main UI and links to other systems in the program. I have a keyDown method to parse keys for commands to the game, but they never register. Instead I get the alert sound and in the debug setup the breakpoint at the beginning of the keyDown method is never reached. What might I be doing wrong.

Did you add this controller to the responder chain somehow (by e.g. setting it up as window delegate)?

Are you sure that no other responder in the key chain has overloaded keyDown: and will produce the beep? For example if someone invokes interpretKeyEvents: in their keyDown:, the event is converted to an action event which will instead traverse the key chain, and if no receiver is found, the system will beep.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >HElp with NSResponder (From: email@hidden)

  • Prev by Date: Re: Updating multiple NSViews
  • Next by Date: Re: Conversion from an absolute URL to relative
  • Previous by thread: HElp with NSResponder
  • Next by thread: checking for existence of root account
  • Index(es):
    • Date
    • Thread