Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?

2009-09-14 Thread Piotr Grzybowski
Hullo Martin, maybe you should check: v0=[scrollviewfromNib verticalLineScroll]; v1=[otherscrollview verticalLineScroll]; where scrollviewfromNib and otherscrollview correspond to your two controls. then if (fabs(v0-v1)=0.1) ;-) you know.. hope this helps, pg On Thu, Sep 10, 2009 at 4:01

Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?

2009-09-11 Thread Martin Redington
Hi Jens, I'm not totally sure that I want to allow scrolling by fractional amounts - I've definitely seen some smearing, with copy on scroll set, but without that everything (in the textview) seems to render ok, and the speed is acceptable for now, so I'd at least like the option. It seems

Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?

2009-09-11 Thread Martin Redington
Copy on scroll is off for both views - with it set on, I get smearing, but only in the view that's working with fractional amounts (i.e. not rounding off). In this particular case, I actually want slow, but smooth, scrolling, and the ability to change the scrolling speed in very fine increments,

Scrolling NSScrollView by fractional amounts - why would values get rounded?

2009-09-10 Thread Martin Redington
I've got two NSScrollView's in separate windows, that I'm trying to scroll programmatically in synchrony. I'm calling [[scrollView contentView] scrollToPoint:theNewPoint]; This works fine when the new y value is a whole integer, but I'm seeing some strange behaviour when trying to scroll by

Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?

2009-09-10 Thread Jens Alfke
On Sep 10, 2009, at 7:01 AM, Martin Redington wrote: This works fine when the new y value is a whole integer, but I'm seeing some strange behaviour when trying to scroll by fractional amount (e.g. .25 or .5 of a pixel). Are you sure you want to scroll by fractional pixels? It will be

Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?

2009-09-10 Thread Graham Cox
On 11/09/2009, at 4:41 AM, Jens Alfke wrote: This works fine when the new y value is a whole integer, but I'm seeing some strange behaviour when trying to scroll by fractional amount (e.g. .25 or .5 of a pixel). Are you sure you want to scroll by fractional pixels? It will be slower,