Re: NSTableView rows and delete key
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.