Re: Flipped horizontal NSRulerView?
Re: Flipped horizontal NSRulerView?
- Subject: Re: Flipped horizontal NSRulerView?
- From: Quincey Morris <email@hidden>
- Date: Wed, 10 Aug 2011 21:54:21 -0700
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 directions from usual (i.e.
> increasing from right to left and top to bottom).
>
> By overriding -isFlipped in an NSRulerView subclass and then calling
> - -setOriginOffset: appropriately I was able to get the desired behavior
> in the vertical ruler (though it feels like a kludge).
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.
_______________________________________________
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