• 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: Properly supporting 'delete' key presses in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Properly supporting 'delete' key presses in NSTableView (From: "Sean McBride" <email@hidden>)
 >Re: Properly supporting 'delete' key presses in NSTableView (From: Corbin Dunn <email@hidden>)
 >Re: Properly supporting 'delete' key presses in NSTableView (From: "Sean McBride" <email@hidden>)
 >Re: Properly supporting 'delete' key presses in NSTableView (From: "Dalzhim Dalzhim" <email@hidden>)
 >Re: Properly supporting 'delete' key presses in NSTableView (From: Corbin Dunn <email@hidden>)
 >Re: Properly supporting 'delete' key presses in NSTableView (From: "Dalzhim Dalzhim" <email@hidden>)
 >Re: Properly supporting 'delete' key presses in NSTableView (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Putting an image on a CALayer
  • Next by Date: Re: Putting an image on a CALayer
  • Previous by thread: Re: Properly supporting 'delete' key presses in NSTableView
  • Next by thread: Re: Properly supporting 'delete' key presses in NSTableView
  • Index(es):
    • Date
    • Thread