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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to