• 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: 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

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

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