• 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
Smooth scrolling in NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Smooth scrolling in NSScrollView
      • From: Uli Kusterer <email@hidden>
    • Re: Smooth scrolling in NSScrollView
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Missing something with CGColorGetComponents()
  • Next by Date: Re: Smooth scrolling in NSScrollView
  • Previous by thread: Re: Why is 'missing sentinel in function call' appearing?
  • Next by thread: Re: Smooth scrolling in NSScrollView
  • Index(es):
    • Date
    • Thread