Re: Flipped horizontal NSRulerView?
Re: Flipped horizontal NSRulerView?
- Subject: Re: Flipped horizontal NSRulerView?
- From: Graham Cox <email@hidden>
- Date: Thu, 11 Aug 2011 14:47:24 +1000
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 achieve a right-to-left horizontal ruler? Or is this
> a sign that I am abusing NSRulerView beyond its intended use and I
> should consequently draw my own axis scales?
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 coordinates, and also maybe makes it easier to lay out.
--Graham_______________________________________________
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