Re: Flipped horizontal NSRulerView?

2011-08-11 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/10/11 9:47 PM, Graham Cox wrote: Yes, I think so - subclass override -drawHashMarksAndLabelsInRect. I think the comment that the horizontal ruler already assumes a flipped coordinate system refers to the fact that it draws text, which likes

Flipped horizontal NSRulerView?

2011-08-10 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a scroll view containing a view with plotted data (previously mentioned in my emails regarding plotting with NSBezierPath). I am considering using NSRulerViews as axis scales. I was able to configure the rulers to have the appropriate

Re: Flipped horizontal NSRulerView?

2011-08-10 Thread Graham Cox
On 11/08/2011, at 2:33 PM, Conrad Shultz wrote: However, this does not seem to have any effect in the horizontal dimension (which would be consistent with the documentation, which rather cryptically notes that horizontal rulers always assume a flipped coordinate system). Is there a way to

Re: Flipped horizontal NSRulerView?

2011-08-10 Thread Quincey Morris
On Aug 10, 2011, at 21:33 , Conrad Shultz wrote: I am considering using NSRulerViews as axis scales. I was able to configure the rulers to have the appropriate point-to-unit conversion factors, etc., but the one obstacle I have encountered is that the desired scales increment in opposite

Re: Flipped horizontal NSRulerView?

2011-08-10 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/10/11 9:54 PM, Quincey Morris wrote: Did you try using negative scale factors in the custom ruler scale definition? If the rulers accept that, then you might also have to change the sign on your data values too, for drawing purposes. Yeah,