Re: Properly supporting 'delete' key presses in NSTableView
Re: Properly supporting 'delete' key presses in NSTableView
- Subject: Re: Properly supporting 'delete' key presses in NSTableView
- From: "Dalzhim Dalzhim" <email@hidden>
- Date: Tue, 21 Oct 2008 12:02:15 -0400
Well you can easily create a NSTableView category in which you handle the
integration of a NSResponder which handles the delete key into the responder
chain. This way you won't have to fix this in every single subclass of
NSTableView that might appear in the future, wherever it comes from (system
components or home-made components).
Besides, if you do not wish to create a new element in the responder chain,
you can simply add this functionality to one of the elements already present
in the responder chain such as a controller.
-Dalzhim
2008/10/21 Sean McBride <email@hidden>
>
> A clever solution, but it means you have to always set up some other
> object to do what NSTableView should do itself. If your app has tens of
> tableviews, it seems nicer to subclass and fix NSTableView, then just
> use your subclass everywhere. I guess the best solution always depends
> on one's situation.
>
> Thanks to all,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng email@hidden
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
>
_______________________________________________
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