Smooth scrolling in NSScrollView
Smooth scrolling in NSScrollView
- Subject: Smooth scrolling in NSScrollView
- From: Gideon King <email@hidden>
- Date: Fri, 15 Oct 2010 11:12:17 +1000
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.
Is there any way I can force all the drawing to happen at the start so it doesn't need to be happening in the middle of my animation? (I have tried sending display messages to everything before doing the animation, but it didn't make a difference - I'm assuming the window server is being smart and clipping to the visible rect).
Thanks
Gideon
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden