• 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: NSLayoutManager and best override point for temporary attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: NSLayoutManager and best override point for temporary attributes (From: Keith Blount <email@hidden>)

  • Prev by Date: Applying temporaryAttributes from processEditing (_fillGlyphHoleForCharacterRange: crash)
  • Next by Date: Re: NSOutlineView - Automatically select newly added item - Help needed
  • Previous by thread: Re: NSLayoutManager and best override point for temporary attributes
  • Next by thread: Re: NSLayoutManager and best override point for temporary attributes
  • Index(es):
    • Date
    • Thread