• 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
Key presses in NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Key presses in NSView


  • Subject: Key presses in NSView
  • From: Gordon Apple <email@hidden>
  • Date: Thu, 04 Oct 2012 16:17:57 -0600
  • Thread-topic: Key presses in NSView

I have a screen overlay window/view (one for each available screen) which
accepts mouse events (up, down, dragged).  I want the user to be able to
cancel and dismiss the overlay window(s) by hitting the ³any² key (old MS
joke).  Unfortunately, overriding keyDown/keyUp does not work.  I just get a
system beep.  Any ideas?

This is essentially the DragMouseBoxView (simple subclass of NSView) from
the AVScreenShack sample.  It is set to acceptFirstResponder and
acceptFirstMouseClick.

_______________________________________________

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: Key presses in NSView
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: backtrace() symbolizes wrong, to an inline function
  • Next by Date: Re: Suggestions for handling old document files with file paths in a sandbox environment
  • Previous by thread: CIFilter on CALayer on Mac OS 10.7+
  • Next by thread: Re: Key presses in NSView
  • Index(es):
    • Date
    • Thread