Re: NSLayoutManager and best override point for temporary attributes
Re: NSLayoutManager and best override point for temporary attributes
- Subject: Re: NSLayoutManager and best override point for temporary attributes
- From: Ross Carter <email@hidden>
- Date: Tue, 06 Oct 2009 12:38:51 -0400
On Oct 5, 2009, at 3:12 PM, Keith Blount wrote:
I tried saving the edited range of text in the text storage and then
having my layout manager check this from:
-textStorage:edited:range:changeInLength:invalidatedRange:
Then my layout manager adds temp attribs in this method. Turns out
that this is a Bad Thing (which I should have realised beforehand),
as it can cause glyph generation before the text storage has ended
editing. D'oh.
I haven't tried fixing temporary attributes in NSTextStorage -
fixFontAttributeInRange:, but that might be worth a try.
Ross
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden