insertText in NSOutlineView? (for Autolocator)
insertText in NSOutlineView? (for Autolocator)
- Subject: insertText in NSOutlineView? (for Autolocator)
- From: Manfred Lippert <email@hidden>
- Date: Fri, 17 May 2002 11:08:32 +0200
Hi,
I asked this question a few weeks ago, but got no answer.
I am still trying to implement an "autolocator" for an NSOutlineView, but I
had no success.
I want the user to be able to type some characters, and if there are no more
characters entered for a specific time, the NSOutlineView should "jump" to
the specific entry (whose entry begins with the entered characters).
Pretty the same way as the Finder does it (so there must be a way to do it).
How can I do that?
I tried to override "insertText" in my NSOutlineView subclass, but this is
never called.
keyDown is called, but insertText is never called.
Now I tried to allocate an (invisible) NSTextField object when the
NSOutlineView awakes from Nib and I hooked this NSTextField in the Responder
chain right after the NSOutlineView.
Result: NSTextField's keyDown is correctly called for all keys that are not
handled by NSOutlineView, but also insertText is never called. Entered
characters end in "beeps" just as they will without the NSTextField.
Please help!
How can I implement an autolocator in an NSOutlineView??
Sure, I could filter "printable" keys (a-z) directly in the keyDown method,
but this is a "hack" and then the autolocator will not work for special
characters that require more than one key stroke (French characters with
accent etc.). So it would be great if this works the "correct" way with help
of the text input manager.
Any hints?
Regards,
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.