• 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: [NEWBIE] NSWindow and keyDown events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NEWBIE] NSWindow and keyDown events


  • Subject: Re: [NEWBIE] NSWindow and keyDown events
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 20 Apr 2005 16:42:20 -0700

On Wed, 20 Apr 2005 15:01:09 -0600, Gerald Hanks <email@hidden> said:
>How do I capture keyDown events for a window the does not have any text
>fields or similar controls on it.  I have an app with a single window
>and controller object.  The window displays information that I would
>like to be able to control using key events.  How do I make it so that
>my controller object can capture the keyDown events from the user?

One approach is to subclass NSWindow (or NSWindowController, and make your
window controller the controller of this window) and implement keyDown:. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Category or Protocol? (sidetrack)
  • Next by Date: Re: Category or Protocol? (sidetrack)
  • Previous by thread: [NEWBIE] NSWindow and keyDown events
  • Next by thread: Bindings, arrangedObjects, and a NSTableView-like view
  • Index(es):
    • Date
    • Thread