• 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: scrollRangeToVisible is slowing me down
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrollRangeToVisible is slowing me down


  • Subject: Re: scrollRangeToVisible is slowing me down
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 24 Feb 2005 14:07:28 -0800

On 2005-02-24 13:58:36 -0800 Adam <email@hidden> wrote:

I tried using scrollToPoint last night. For the point to scroll to I used 0,[[terminalDisplayScrollView contentView] documentRect].size.height

However this resulted in flickering every time the view was updated. I turned on Quartz Debug and noticed that every other time the view refreshed it blanked out to white, then on the next refresh it would redraw correctly.

This will not work, because the height of the text view is not correct until the text is laid out. The real problem, as I said, is that you are invalidating the entire layout every time. That's what's causing your flickering, too.


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


References: 
 >Re: scrollRangeToVisible is slowing me down (From: Adam <email@hidden>)

  • Prev by Date: Re: scrollRangeToVisible is slowing me down
  • Next by Date: NSTextView - less efficient on loading from file?
  • Previous by thread: Re: scrollRangeToVisible is slowing me down
  • Next by thread: troublesome NSStepperCell
  • Index(es):
    • Date
    • Thread