• 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: Can a Controller to accept key down event?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Login item support for Panther, Tiger and Leopard
  • Next by Date: Re: Trying to build a universal binary...
  • Previous by thread: Re: Can a Controller to accept key down event?
  • Next by thread: NSOutlineView and reload
  • Index(es):
    • Date
    • Thread