Re: Grabbing key presses in NSTableView
Re: Grabbing key presses in NSTableView
- Subject: Re: Grabbing key presses in NSTableView
- From: matt neuburg <email@hidden>
- Date: Tue, 27 Apr 2004 08:29:53 -0700
On Wed, 21 Apr 2004 09:52:04 +0200, "Kasper J. Jeppesen"
<email@hidden> said:
>
I need to let my user delete records from a tableview simply by
>
pressing backspace. The only clues i have been able to find, towards
>
doing this, involves subclassing NSTableView. Is that really the only
>
way?
>
>
Lots of applications do this, so I would almost asume cocoa has some
>
really neat way of doing it (like so many other things in cocoa)... any
>
clues?
That's how I do it - subclass NSTableView and implement keyDown: (and notify
the delegate). Why is this approach undesirable or non-"neat"? m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
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.