Re: Smooth scrolling in NSScrollView

2010-10-16 Thread Matt Neuburg
On Sat, 16 Oct 2010 07:40:00 +1000, Gideon King said: > >Interestingly, if I use the >setLayerContentsRedrawPolicy:NSViewLayerContentsRedrawNever, it doesn't >cause a redraw at all, but my animations still seem to work OK. The issue >with that is that this option is a 10.6 only one, and the only t

Re: Smooth scrolling in NSScrollView

2010-10-15 Thread Gideon King
Both copiesOnScroll and drawsBackground are turned on. I tried another little experiment and turned the layer backing for the subviews off, and the only times that the drawing code for the subviews was called is when they are coming on to the visible rect - when they are already there, the draw

Re: Smooth scrolling in NSScrollView

2010-10-15 Thread Keary Suska
On Oct 15, 2010, at 8:50 AM, Gideon King wrote: > Thanks for the suggestion Uli. > > The subviews are layer backed views. I've stripped them down to simply > drawing the color into a path - absolutely nothing unusual or complex there. > > Now this is rather embarrassing, but I found out that th

Re: Smooth scrolling in NSScrollView

2010-10-15 Thread Gideon King
Thanks for the suggestion Uli. The subviews are layer backed views. I've stripped them down to simply drawing the color into a path - absolutely nothing unusual or complex there. Now this is rather embarrassing, but I found out that the cause of the visual slowdown was entirely due to running i

Re: Smooth scrolling in NSScrollView

2010-10-15 Thread Uli Kusterer
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 s

Re: Smooth scrolling in NSScrollView

2010-10-14 Thread Gideon King
Thanks for trying to keep me on the design straight and narrow path Kyle, but in this case, it will not affect normal scrolling within the application - only for use in special circumstances which the user will activate. I just tried out the smooth scrolling option and it is a bit smoother than

Re: Smooth scrolling in NSScrollView

2010-10-14 Thread Kyle Sluder
On Thu, Oct 14, 2010 at 6:12 PM, 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