Re: NSTextView Custom Class "Not Applicable"
Re: NSTextView Custom Class "Not Applicable"
- Subject: Re: NSTextView Custom Class "Not Applicable"
- From: Andy Lee <email@hidden>
- Date: Mon, 15 Apr 2002 13:41:06 -0400
At 7:12 PM +0200 4/15/02, Manfred Lippert wrote:
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?)
Probably not. A while back someone asked about detecting a tab out
of a text *field*, and one way to handle that was with a delegate
method, because NSTextField inherits from NSControl, which has a
delegate outlet.
But if you've looked at the delegate methods for NSTextVIEW, you've
probably seen all it has to offer. The only thing you might have
missed is that NSTextView inherits from NSText, which has delegate
methods of its own.
As Bill Cheeseman pointed out, the recurring advice seems to be to
override -keyDown:.
--Andy
_______________________________________________
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.