• 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: NSTextView and keyDown: in the responder chain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView and keyDown: in the responder chain


  • Subject: Re: NSTextView and keyDown: in the responder chain
  • From: Tom <email@hidden>
  • Date: Thu, 12 Feb 2009 13:21:40 +1000


On 12/02/2009, at 1:06 PM, Graham Cox wrote:


On 12 Feb 2009, at 1:59 pm, Tom wrote:

Is this a bug in NSTextView or am I missing something?


Have you actually set the next responder of the field editor/text view? I think you have to actually do that explcitly (- setNextResponder:)

--Graham



Yes. I've overriden keyDown on one of the NSTextView objects and checked that the responder chain is correct. In the override, if I bypass the text view with:


 [[self nextResponder] keyDown:event]

then the event is sent down the whole chain, but if I call:

[super keyDown:event]

it beeps and the event doesn't go anywhere.


Kind regards,

Tom





_______________________________________________

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


  • Follow-Ups:
    • Re: NSTextView and keyDown: in the responder chain
      • From: Ross Carter <email@hidden>
References: 
 >NSTextView and keyDown: in the responder chain (From: Tom <email@hidden>)
 >Re: NSTextView and keyDown: in the responder chain (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSTextView and keyDown: in the responder chain
  • Next by Date: Re: Application Architecture or approach
  • Previous by thread: Re: NSTextView and keyDown: in the responder chain
  • Next by thread: Re: NSTextView and keyDown: in the responder chain
  • Index(es):
    • Date
    • Thread