Re: keyDown event processing -- harder than it looks?
Re: keyDown event processing -- harder than it looks?
- Subject: Re: keyDown event processing -- harder than it looks?
- From: Corbin Dunn <email@hidden>
- Date: Tue, 11 Jan 2011 15:08:33 -0800
On Jan 11, 2011, at 1:31 PM, Michael Crawford wrote:
> Documentation says NSWindowController inherits from NSResponder.
>
> Besides, I was getting the events. I just don't understand what this message is and why it is being tossed out every 7 keyDown messages.
>
> http://developer.apple.com/library/mac/#documentation/cocoa/Reference/ApplicationKit/Classes/NSWindowController_Class/Reference/Reference.html
>
You probably have a view in the responder chain that isn't calling super. Therefore, you have to subclass higher in the responder chain (maybe the view).
corbin
> -Michael
>
> On Jan 11, 2011, at 4:25 PM, Seth Willits wrote:
>
>> On Jan 11, 2011, at 11:17 AM, Michael Crawford wrote:
>>
>>> I'm trying to process a simple keyDown event by overriding -keyDown on the NSWindowController derived class for my main window.
>>
>> The NSWindowController doesn't receive events, only views do.
>>
>>
>> --
>> Seth Willits
>>
>>
>>
>> _______________________________________________
>>
>> 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
>
> _______________________________________________
>
> 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
_______________________________________________
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