Re: Clip/ScrollView image scrambling
Re: Clip/ScrollView image scrambling
- Subject: Re: Clip/ScrollView image scrambling
- From: Scott Thompson <email@hidden>
- Date: Tue, 9 May 2006 09:13:42 -0500
On May 9, 2006, at 7:50 AM, I. Savant wrote:
You're probably better off to actually post the "some
calculations related to finding the center of the view" and
anything else you've changed in your subclass.
The "calculations" are simply getting the midpoint of the bounds rect
(before calling the superview) :-)
Otherwise, my best guess is my own memory of a similar problem. It
was of course my own fault - I had a temporary iVar in which I
stored some special view metrics. Sort of a "last state" indicator.
This was not properly updated when the window (and as a result, the
view) was resized. The next time it scroll view scrolled, the
view's drawing was skewed.
I had since trashed that approach as I had found a more efficient
approach to my particular problem. Either way, it's difficult to
say what the problem is in your case until we know exactly how
you've changed the behavior in your subclass. :-)
Careful debugging indicated that the problem in this case was the
call to scrollToPoint: inside of the setViewSize method and nothing
more than that.
As it stands, however, I've replaced the call to scrollToPoint: with
a call to "scrollRectToVisible:" and that seems to have eliminated
the problem.
Scott
_______________________________________________
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