Re: Text Processing in NSTextView
Re: Text Processing in NSTextView
- Subject: Re: Text Processing in NSTextView
- From: Ronnie O <email@hidden>
- Date: Mon, 4 Jul 2005 17:04:36 -0500
Thanks for the suggestion. I played with that delegate method to see
what values it outputs and if that was what I needed. I see that
individual characters are captured and the location index is
specified. I still will need to do some pre-formatting of the data
before I capture the data directly from the textView for insert into a
raw data variable b/c my tabs are included in the index location. So
I need to account for that. Thanks again!
> 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