• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Issues with NSTextView and undoing attributes - Solved (I think)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Issues with NSTextView and undoing attributes - Solved (I think)
      • From: Scott Lehman <email@hidden>
References: 
 >Re: Issues with NSTextView and undoing attributes - Solved (I think) (From: Scott Lehman <email@hidden>)

  • Prev by Date: Re: [NSTextView firstRectForCharacterRange:] returns empty rect
  • Next by Date: Re: Text Layout problems
  • Previous by thread: Re: Issues with NSTextView and undoing attributes - Solved (I think)
  • Next by thread: Re: Issues with NSTextView and undoing attributes - Solved (I think)
  • Index(es):
    • Date
    • Thread