Re: limit text input in NSTextView
Re: limit text input in NSTextView
- Subject: Re: limit text input in NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Tue, 17 Sep 2002 09:23:25 -0700
On Tuesday, September 17, 2002, at 05:13 AM, Ondra Cada wrote:
NSTextView processes text on keyDown: rather than keyUp:, but
keyDown: is not the right place to intervene.
Why isn't it?
since there's umpteen other ways how to get chars there: paste,
services, d&d, ...
In addition, keyDown: is too low-level for most purposes. It receives
keystrokes before key binding or input managers have had a chance to
process them; if you wish to intercept returns, for example, you
probably want only those that will be treated by the text view as a
return, not those that are being swallowed by an input method for its
own purposes.
Douglas Davidson
_______________________________________________
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.