• 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
NSTextField not consuming keyDown events; How do I prevent super view from receiving those events?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField not consuming keyDown events; How do I prevent super view from receiving those events?


  • Subject: NSTextField not consuming keyDown events; How do I prevent super view from receiving those events?
  • From: Eric Wing <email@hidden>
  • Date: Tue, 13 Mar 2012 15:50:00 -0700

I have a very simple custom view where I override keyDown: and keyUp:.

I just put an NSTextField on top of my custom view in Interface
Builder (subview of my custom view). When I type in the text field (it
has focus), I noticed that my custom view is picking up all the
keyEvents. I wasn't expecting that and was expecting the text field to
consume all the key events since it is already processing them to add
to the field.

Is there a way to get the text field (and any other widgets that might
do this like NSTextView) to consume the events they process so my
custom view doesn't receive them?


Thanks,
Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________

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: NSTextField not consuming keyDown events; How do I prevent super view from receiving those events?
      • From: "email@hidden" <email@hidden>
  • Prev by Date: Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?
  • Next by Date: Re: NSTextField not consuming keyDown events; How do I prevent super view from receiving those events?
  • Previous by thread: Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?
  • Next by thread: Re: NSTextField not consuming keyDown events; How do I prevent super view from receiving those events?
  • Index(es):
    • Date
    • Thread