• 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
NSLayoutManager & Non-Contiguous Layout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSLayoutManager & Non-Contiguous Layout


  • Subject: NSLayoutManager & Non-Contiguous Layout
  • From: Jonathan Dann <email@hidden>
  • Date: Thu, 27 Mar 2008 01:08:31 +0000

Hi Guys,

I'm using non-contiguous layout in one of my text views and I keep getting this strange drawing error when I scroll quickly just after the document has loaded:

http://flickr.com/photos/jonathandann/2364567591/

I have a method that highlights syntax by getting the visible character range in the scroll view and setting some temporary attributes to the text. When that is never called, this drawing bug (is it invalidation of glyphs?) doesn't happen. I've tried all the different variations on the ensureLayout and placed them everywhere I can think of I'm even getting the -didCompleteLayout..... method sent to my layout manager's delegate.

When this happens if I switch apps I see the view fix the drawing, the same happens if I scroll a tiny bit more after I see this. Calling - display and -displayIfNeeded on the textView after setting the temporary attributes doesn't work either. Does anybody have any experience with this issue, I'm at a loss.

Thanks in advance,

Jonathan

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Prev by Date: Re: Leopard on PPC
  • Next by Date: Getting a list of all classes, etc...
  • Previous by thread: Is it possible to change color of NSBox Title?
  • Next by thread: Getting a list of all classes, etc...
  • Index(es):
    • Date
    • Thread