• 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: Clip/ScrollView image scrambling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Clip/ScrollView image scrambling (From: Scott Thompson <email@hidden>)
 >Re: Clip/ScrollView image scrambling (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: How to include a framework in a custom IB Palette
  • Next by Date: Re: How to include a framework in a custom IB Palette
  • Previous by thread: Re: First click when activated
  • Next by thread: Cocoa software design issue
  • Index(es):
    • Date
    • Thread