• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: limit text input in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: limit text input in NSTextView (From: Ondra Cada <email@hidden>)

  • Prev by Date: 10.2 PB crashing
  • Next by Date: Re: DB-Engine
  • Previous by thread: Re: limit text input in NSTextView
  • Next by thread: Re: limit text input in NSTextView
  • Index(es):
    • Date
    • Thread