Re: Text Processing in NSTextView
Re: Text Processing in NSTextView
- Subject: Re: Text Processing in NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Thu, 30 Jun 2005 11:18:58 -0700
On Jun 30, 2005, at 11:14 AM, Ronnie O wrote:
Can anyone recommend an alternative that would allow me to grab the
keyDown event (in the case of character input, removal etc.) and
directly alter my dataString variable? Then I could just format that
for display. Then I would not need to de-format the data in the view.
Don't deal with the keyDown event directly. You don't know how it is
going to alter the text. Try acting as the text view's delegate and
handling -shouldChangeTextInRange:replacementString:, or in Tiger -
shouldChangeTextInRanges:replacementStrings:.
Douglas Davidson
_______________________________________________
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