Re: Tab and Enter in NSTextView
Re: Tab and Enter in NSTextView
- Subject: Re: Tab and Enter in NSTextView
- From: "Adam R. Maxwell" <email@hidden>
- Date: Sun, 3 Sep 2006 11:29:27 -0700
On Sep 3, 2006, at 11:17, I. Savant wrote:
You could subclass NSTextView and override -keyDown: ... In this
method, if the key is "tab", call [self nextKeyView]; ... otherwise,
call [super keyDown:...];
Overriding keyDown: in NSTextView is generally a bad idea (Douglas
Davidson posts on this occasionally). In Mike's case, I think
overriding insertTab:(id)sender would be more appropriate.
hth,
Adam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden