• 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: Ross Carter <email@hidden>
  • Date: Thu, 12 Feb 2009 10:58:04 -0500


On Feb 11, 2009, at 10:21 PM, Tom wrote:

However, I've found that when an NSTextView receives a keyDown event that doesn't handle, it doesn't bother to send the event down the responder chain and just calls NSBeep().

I expect that there isn't a keyDown event that NSTextView doesn't handle. It sends them all to -interpretKeyEvents. The events go through the system input manager and get back to the NSTextView in the form of -insertText: or -doCommandBySelector:. It is doCommandBySelector: that is firing the beep. You can set a breakpoint on NSBeep to see the call stack.


Ross
_______________________________________________

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:
    • [SOLVED] Re: NSTextView and keyDown: in the responder chain
      • From: Tom <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>)
 >Re: NSTextView and keyDown: in the responder chain (From: Tom <email@hidden>)

  • Prev by Date: Re: Garbage Collection and NSManagedObject
  • Next by Date: Re: How do I make one thread wait until another thread exits?
  • Previous by thread: Re: NSTextView and keyDown: in the responder chain
  • Next by thread: [SOLVED] Re: NSTextView and keyDown: in the responder chain
  • Index(es):
    • Date
    • Thread