Re: cancelOperation: does not work for trapping the escape key
Re: cancelOperation: does not work for trapping the escape key
- Subject: Re: cancelOperation: does not work for trapping the escape key
- From: Hank Heijink <email@hidden>
- Date: Tue, 18 Dec 2007 10:51:13 -0500
Are you calling interpretKeyEvents: in your keyDown: method? If not,
there's your problem. See 'Overriding the keyDown: Method' in the
Cocoa Event-Handling Guide.
http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/Introduction/
Good luck,
Hank
On Dec 18, 2007, at 10:28 AM, Kenny Leung wrote:
Hi All.
I would like to trap the escape key for my window. I dug through the
mail archives and found references to cancelOpeation:. This is
exactly what I want. So I implemented cancelOperation: in my
windowController, and get nothing. I just get the alert sound when I
hit escape. Just to be sure, I also implemented keyDown: in my
windowController, and those are getting through all right.
Has anyone out there bumped into this? It is so frustrating when
simple things won't work!
Thanks!
-Kenny
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@runbox.com
This email sent to email@hidden
Hank Heijink
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden