Re: deleteBackward in NSTableView
Re: deleteBackward in NSTableView
- Subject: Re: deleteBackward in NSTableView
- From: Ken Ferry <email@hidden>
- Date: Sat, 11 Sep 2004 13:57:57 -0400
NSResponder's action methods, such as deleteBackwards, only get called
if some object in the responder chain calls -[NSResponder
interpretKeyEvents:] on events as they come in. NSTableView doesn't
do that, it just catches a few specific events in -[NSTableView
keyDown:] and lets the rest drop through.
-Ken
On Sat, 11 Sep 2004 14:15:35 +0200, Julien Salort
<email@hidden> wrote:
> > You could also consider checking the recent thread "class needs access
> > to table data source" where I outlined a different way to handle key
> > events in table views.
>
> You wrote :
> > Why don't you subclass the table view instead? You can override
> > "keyDown:" in the table view, and that's most likely a better place for
> > that modification.
>
> I tried that and it works. keyDown: gets called.
> I find somewhat strange that keyDown gets called while deleteBackward is
> not but that's fine. I should be able to have the delete key work now.
>
> Thanks for your help,
>
>
>
> --
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on a mailing list?
> _______________________________________________
> 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.
>
>
_______________________________________________
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