• 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: Special handling of keystrokes in a window controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Special handling of keystrokes in a window controller


  • Subject: Re: Special handling of keystrokes in a window controller
  • From: Michael Vannorsdel <email@hidden>
  • Date: Wed, 23 Apr 2008 09:46:16 -0600

You can subclass NSWindow for your window and override keyDown:. The ones you want to pass down the chain you send by calling the superclass's keyDown.


On Apr 23, 2008, at 9:36 AM, Duncan Champney wrote:

I could easily change my zoom in/zoom out keystrokes to be the bracket keys ("[" "]" with or without shift), or some other set of keys that are only used by the 3D view, but I need a way to intercept them. Is there a clean way for me to catch certain keystrokes globally for the window, and pass them to my 3D view, while letting others go to the current firstResponder?

_______________________________________________

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


References: 
 >Special handling of keystrokes in a window controller (From: Duncan Champney <email@hidden>)

  • Prev by Date: Failure on unarchiving a NSBezierPath
  • Next by Date: Re: Resource Fork - is this a good use/the right thing to do?
  • Previous by thread: Special handling of keystrokes in a window controller
  • Next by thread: Failure on unarchiving a NSBezierPath
  • Index(es):
    • Date
    • Thread