• 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
Getting the Command key modifier for a NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the Command key modifier for a NSView


  • Subject: Getting the Command key modifier for a NSView
  • From: "Mike Davis" <email@hidden>
  • Date: Wed, 22 Aug 2001 14:19:30 -0400

I'm trying to get keys for a NSView with keyDown: but I don't get the keys
when the Command modifier is pressed. The view is firstResponder.

I've read the documentation, in particular for NSView, NSWindow,
NSResponder and NSApplication but whatever I seem to do the menu bar gets
the Command key events instead of me.

My view itself is running in a sheet from an inspector panel and the
application is NSDocument based. Basically, when my panel/view is key, I
don't want *any* other view getting the key events.

Any ideas?

Mike.


  • Follow-Ups:
    • Re: Getting the Command key modifier for a NSView
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Continious/Auto-repeat Buttons & Steppers leak 30Kb+ per second!!?
  • Next by Date: Enabling and Disabling menus
  • Previous by thread: Re: Several sheets at the same time?
  • Next by thread: Re: Getting the Command key modifier for a NSView
  • Index(es):
    • Date
    • Thread