Re: [NEWBIE] NSWindow and keyDown events
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