Re: NSTableView eating keyDowns?
Re: NSTableView eating keyDowns?
- Subject: Re: NSTableView eating keyDowns?
- From: Darrin Cardani <email@hidden>
- Date: Wed, 10 Mar 2004 09:44:36 -0600
At 12:33 PM -0800 3/9/04, Steve Palmer wrote:
On Tuesday, March 09, 2004, at 11:57AM, Darrin Cardani
<email@hidden> wrote:
I have a window with an NSTableView in it. I have written a -keyDown:
method for the window controller. I want the window controller to
respond to the user pressing the space bar. I get key down events in
the window controller's -keyDown: method if the user presses a letter
key. However, if the user presses the space bar, I don't get the
event. The NSTableView has focus and is the only view in the window
that can accept focus. Pressing the space bar doesn't seem to have
any affect on the table view, but it also isn't passed to the window
>controller. Why is that?
The way I did it was to subclass NSTableView and handle the keyDown
event in the subclass.
Well I can certainly do that, but it leaves the question of why is
NSTableView eating the space character? Is it supposed to do
something with the space character? If not, should I file a bug about
it?
Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<
http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.