Re: HElp with NSResponder
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.