Re: Issues with NSTextView and undoing attributes - Solved (I think)
Re: Issues with NSTextView and undoing attributes - Solved (I think)
- Subject: Re: Issues with NSTextView and undoing attributes - Solved (I think)
- From: Douglas Davidson <email@hidden>
- Date: Mon, 6 Mar 2006 09:47:16 -0800
On Mar 5, 2006, at 10:15 PM, Scott Lehman wrote:
I think the culprit was non-lazy attribute fixing in
the text storage. I wasn't expecting a text change to
the start of a paragraph to cause the prior
paragraph's style to extend to this entire paragraph.
Making the fixing lazy provides the proper result.
I take it I should always be careful to apply
paragraph styles to entire paragraphs at a time to
avoid any similar issues?
Paragraph style attributes are expected to be applied to complete
paragraphs. There is an attribute fixing step, paragraph attribute
fixing, that specifically corrects any violations of this. After
attribute fixing, a paragraph that contained multiple paragraph style
attributes will end up with one of them over its entire range.
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