Re: scrollRangeToVisible is slowing me down
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