Re: Can a Controller to accept key down event?
Re: Can a Controller to accept key down event?
- Subject: Re: Can a Controller to accept key down event?
- From: Gordon Apple <email@hidden>
- Date: Tue, 05 Feb 2008 12:51:05 -0600
I don't like to subclass views if at all possible, so what I often do is
make my controller a subclass of NSResponder and in its "awakeFromNib" I
insert it into the responder chain after the view. I find this works very
well. I do use a simple subclass of NSView that has a "draw" delegate.
> On Feb 5, 2008 1:11 PM, Leopard x86 <email@hidden> wrote:
>> In a simple application, I create a controller to implement my
>> application logic. I want the controller to accept the key down
>> event. This task seems very simple, but I am still a little messed up
>> by the huge document.
>
> Events follow the responder chain:
> http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/Co
> reAppArchitecture/chapter_7_section_6.html
>
> --Kyle Sluder
>
_______________________________________________
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