Best way to modify user input into NSTextView

2009-03-31 Thread Zac Samuel
Hi, I'd like to override the behavior of an NSTextView so that when a certain character is typed, a different character is inserted. For example I'd like × to be inserted when the user types *. This can be done really easily using the shouldChangeTextInRanges:replacementStrings delegate method:

Re: Best way to modify user input into NSTextView

2009-03-31 Thread Kirk Swenson
On Mar 31, 2009, at 8:12 AM, cocoa-dev-requ...@lists.apple.com wrote: From: Zac Samuel happy...@gmail.com Date: March 31, 2009 3:47:26 AM PDT To: cocoa-dev@lists.apple.com Subject: Best way to modify user input into NSTextView I'd like to override the behavior of an NSTextView so that when