Text Input in NSOutlineView (Autolocator)
Text Input in NSOutlineView (Autolocator)
- Subject: Text Input in NSOutlineView (Autolocator)
- From: Manfred Lippert <email@hidden>
- Date: Sat, 27 Apr 2002 13:53:01 +0200
Hi,
I have a subclass of NSOutlineView and I want to receive text input,
invisible for the user. I want this to realize an "Autolocator", so the user
types some characters and if he does not type any more characters in a
specific amount of time, the selection should jump to the a row whose text
entry "fits" to the entered characters.
I don't know how to receive the text input.
I already override "keyDown:" in my NSOutlineView subclass, because I
implemented specific behaviour for some keys like Return, Backspace and the
Arrow keys.
But I don't know if this is the right place to implement my autolocator? It
seems that I have to filter for printable characters. I have to hand down
any non-printable characters to [super keyDown:]. If I don't do that, I
break some behaviour of the NSOutlineView like scrolling the selection
up/down. I must not hand down the events for printable characters, because
if I do that, the NSOutlineView "pings" on every character it cannot handle.
Any hints how to realize an Autolocator for NSOutlineView?
I already tried to implement "insertText" (from the NSTextInput protocol)
but it is never called. Do I have to implement the whole NSTextInput
protocol in my NSOutlineView subclass?? (It looks like much needless work!)
Thanx,
Mani
_______________________________________________
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.