Re: NSTextView and limiting text attributes via delegate
Re: NSTextView and limiting text attributes via delegate
- Subject: Re: NSTextView and limiting text attributes via delegate
- From: Douglas Davidson <email@hidden>
- Date: Mon, 6 Feb 2006 15:32:27 -0800
On Feb 4, 2006, at 2:14 PM, Scott Lehman wrote:
Is there any particular reason to override the
fixAttributes method versus the setAttributes:range:?
In my testing, I do see that the former seems to be
called just once for a range containing differing
attributes unlike the latter, but I would have to
divide it into the different attribute runs anyway.
The intent is that fixAttributes is the point for doing this sort of
thing. Depending on implementation, you could do it the other way,
but fixAttributes is designed for it--you can take advantage of
things like lazy fixing and the kit's calling of fixAttributes at the
appropriate points.
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