Re: NSTextView Custom Class "Not Applicable"
Re: NSTextView Custom Class "Not Applicable"
- Subject: Re: NSTextView Custom Class "Not Applicable"
- From: Manfred Lippert <email@hidden>
- Date: Mon, 15 Apr 2002 20:23:35 +0200
>
> BTW: I am trying to filter some keys in an NSTextView. Is there a better way
>
> than subclassing NSTextView? (Some delegate methods I haven't seen?)
>
>
Yes, there usually is, but it depends a bit on which keys you are looking for.
I am looking for Control+TAB or Option+TAB ...
... OK, here is the full story: ;-)
(Perhaps you know LittleSecrets; if not, you can take a look at it on
http://www.littlesecrets.de)
I have an NSOutlineView and an NSTextView in a window. If I am in the
OutlineView and press the TAB key, I can jump from the OutlineView to the
TextView. But I can not jump back, because there is instead a Tabulator
inserted in the TextView, of course.
A few weeks ago, if I pressed Control+TAB, I _could_ jump from TextView to
OutlineView. But this suddenly does not work anymore! I don't know why.
Does anyone know?
So I choose to implement it myself to be 100% sure Control+TAB always works
and does not depend on some mystic system behaviour. ;-)
Bad news: I successfully subclassed NSTextView now (thanx to Peter Horn!)
and I override keyDown. But it is NOT called, when Control+TAB is pressed!
Anyone knows why?
OK, I choose to use Option+TAB now ... I can filter that in keyDown.
Some more bad news: I tried to jump to my OutlineView with
[window makeFirstResponder:outlineView];
But this also does not work?!?
Again: Does anyone know why? ;-}
Thank you,
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.