Re: Select-by-typing in NSTableView
Re: Select-by-typing in NSTableView
- Subject: Re: Select-by-typing in NSTableView
- From: Sam Goldman <email@hidden>
- Date: Fri, 08 Mar 2002 04:48:17 -0800
Dan,
You would most likely have an easier time writing this yourself. All you
need to do is respond to keyDown: (and put your view in the responder chain,
of course) and as you get the key events (with an optional reset timer) find
the first row to match. If you need, I'll write up an example for you (I am
board).
If you knew all that, then I am sorry if I assumed otherwise...
- Sam
On 3/8/02 4:40 AM, "Dan Bernstein" <email@hidden> wrote:
>
Is there an existing, open-source, NSTableView subclass that allows
>
selection by typing the first few letters (a-la-Finder or the classic
>
List Manager, IIRC)?
>
>
If not - I think I'll write one myself. I suppose I'll define an
>
additional data-source method to return the row index of the first item
>
matching a prefix. Any idea on the best way to get the keyboard timing
>
values (repeat rate and delay until repeat)?
>
>
TIA,
>
-- Dan Bernstein
>
_______________________________________________
>
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.
--
Windows is a 32-bit patch to a 16-bit shell for an 8-bit operating system
written for a 4-bit processor by a 2-bit company without 1 bit of sense.
_______________________________________________
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.