Re: Smooth scrolling in NSScrollView

2010-10-16 Thread Matt Neuburg
On Sat, 16 Oct 2010 07:40:00 +1000, Gideon King gid...@novamind.com 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,

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

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 the

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

Smooth scrolling in NSScrollView

2010-10-14 Thread Gideon King
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

Re: Smooth scrolling in NSScrollView

2010-10-14 Thread Kyle Sluder
On Thu, Oct 14, 2010 at 6:12 PM, Gideon King gid...@novamind.com 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

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 for NSScrollView

2009-12-15 Thread William Ehrich
There was a smooth scrolling feature that was introduced in 10.3 which seems to be automatically enabled for NSTextViews, but it doesn't seem to work for NSScrollViews with custom views. Is there anything I need to do to enable this? Or is this enabled by default now (I'm using the 10.5 SDK,

Re: Smooth Scrolling for NSScrollView

2009-12-14 Thread Scott Ribe
Smooth scrolling is an abomination anyway, by way of Microsoft, a feature that looked cool to some developer but has awful usability. With line-by-line scrolling you can actually read the top or bottom lines as they go by, and determine your place in the document as it scrolls. With smooth

Re: Smooth Scrolling for NSScrollView

2009-12-14 Thread Jeff Johnson
On Dec 14, 2009, at 3:04 PM, Scott Ribe wrote: Smooth scrolling is an abomination anyway, by way of Microsoft, a feature that looked cool to some developer but has awful usability. With line-by-line scrolling you can actually read the top or bottom lines as they go by, and determine your

Smooth Scrolling for NSScrollView

2009-12-13 Thread PCWiz
There was a smooth scrolling feature that was introduced in 10.3 which seems to be automatically enabled for NSTextViews, but it doesn't seem to work for NSScrollViews with custom views. Is there anything I need to do to enable this? Or is this enabled by default now (I'm using the 10.5 SDK,

Re: Smooth Scrolling for NSScrollView

2009-12-13 Thread Jeff Johnson
This may be related to rdar://problem/7238596 REGRESSION: smooth scrolling doesn't work in NSTableView. I found that smooth scrolling doesn't work in an NSTableView enclosed in an NSScrollView. This regression was in Leopard: smooth scrolling worked in Tiger. -Jeff On Dec 13, 2009, at

Re: Smooth Scrolling for NSScrollView

2009-12-13 Thread Graham Cox
On 14/12/2009, at 10:08 AM, PCWiz wrote: Thats a bummer. Are there any 3rd party implementations of the smooth scrolling feature? For example, there's this shareware app called Smart Scroll (http://marcmoini.com/sx_en.html) that does a wonderful job of adding smart scroll to every app

Re: Smooth Scrolling for NSScrollView

2009-12-13 Thread PCWiz
Sounds like good reasoning to me :-) On 2009-12-13, at 4:18 PM, Graham Cox wrote: On 14/12/2009, at 10:08 AM, PCWiz wrote: Thats a bummer. Are there any 3rd party implementations of the smooth scrolling feature? For example, there's this shareware app called Smart Scroll