On Oct 15, 2010, at 3:12 AM, Gideon King wrote:
> Hi, I am trying to get a large view to scroll smoothly in an NSScrollView 
> using an animation on the scrollpoint. The first time I do this, the 
> scrolling is quite jerky, especially when I get to places where there are 
> subviews. Once it has shown the subviews (either by my previous manual 
> scrolling or animated scrolling), the animation goes a lot more smoothly. 
> From this, I deduce that there must be some sort of caching going on.

 Have you run the profiler (Shark/Instruments)? That may give some clues 
regarding what is causing the slowdown. "deduction" is rarely a good choice 
when trying to optimize code.

 Also, what kinds of views are in your scroll view? Are those standard system 
views (and if yes, which ones and with what content), or custom views of your 
own? Have you checked whether you are doing any unnecessarily repeated drawing 
that you could be cacheing to speed up the views, or display of a table view or 
whatever?

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to