• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Flipped horizontal NSRulerView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Flipped horizontal NSRulerView?
      • From: Conrad Shultz <email@hidden>
References: 
 >Flipped horizontal NSRulerView? (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Flipped horizontal NSRulerView?
  • Next by Date: Re: Flipped horizontal NSRulerView?
  • Previous by thread: Flipped horizontal NSRulerView?
  • Next by thread: Re: Flipped horizontal NSRulerView?
  • Index(es):
    • Date
    • Thread