• 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: NSTableView rows and delete key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView rows and delete key


  • Subject: Re: NSTableView rows and delete key
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 25 Jul 2002 14:53:31 -0700

On Thu, 25 Jul 2002 17:05:04 +0200, =?ISO-8859-1?Q?Rapha=EBl_Delcroix?=
<email@hidden> said:

>I can't find anything in the NSTableView documentation about this,

Then you didn't look far enough up the class hierarchy. Always remember to
do that.

>I would like that, if a row (or rows) is/are selected (so if the table
>view is the current key view, if I understand well),
>if the user presses the backspace button on keyboard, it deletes the
>row(s) concerned.

It sounds like you want to say e.g.

- (void)keyDown:(NSEvent*)theEvent {
if ([[theEvent characters] isEqualToString: @"\177"]) { // or whatever
...

You can insert that at any point in the responder chain. m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSTableView rows and delete key
      • From: Daryn <email@hidden>
  • Prev by Date: Re: What is the purpose of static typing?
  • Next by Date: Re: NSTextView limit
  • Previous by thread: NSTableView rows and delete key
  • Next by thread: Re: NSTableView rows and delete key
  • Index(es):
    • Date
    • Thread