FROM : Douglas Davidson
DATE : Tue Nov 12 09:18:48 2002
On Tuesday, November 12, 2002, at 04:39 AM, Mark J. Lilback wrote:
> I'm doing syntax coloring via temporary attributes in the
> layoutManager. Should I be listening for
> textView:shouldChangeTextInRange:replacementString: instead? I was
> trying to use textDidChange: so that I don't have to muck with merging
> the current string and the replacementString to get a substring to
> pass to my tokenizer.
You could listen for
textView:shouldChangeTextInRange:replacementString:, and save enough
information so that later you can determine what the change actually
was when you get textDidChange:.
Douglas Davidson
DATE : Tue Nov 12 09:18:48 2002
On Tuesday, November 12, 2002, at 04:39 AM, Mark J. Lilback wrote:
> I'm doing syntax coloring via temporary attributes in the
> layoutManager. Should I be listening for
> textView:shouldChangeTextInRange:replacementString: instead? I was
> trying to use textDidChange: so that I don't have to muck with merging
> the current string and the replacementString to get a substring to
> pass to my tokenizer.
You could listen for
textView:shouldChangeTextInRange:replacementString:, and save enough
information so that later you can determine what the change actually
was when you get textDidChange:.
Douglas Davidson
| Related mails | Author | Date |
|---|---|---|
| Mark J. Lilback | Nov 12, 04:40 | |
| Douglas Davidson | Nov 12, 09:18 |






Cocoa mail archive

