• 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
NSRuler for nonlinear measurements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSRuler for nonlinear measurements


  • Subject: NSRuler for nonlinear measurements
  • From: Carlos Eduardo Mello <email@hidden>
  • Date: Thu, 24 Feb 2011 11:44:11 -0300

Hi everone,

I am using a vertical NSRuler with my CustomView-inside-ScrollView set up. I read every piece of documentation there is (guides, reference) and searched the list archives and google but couldn't find anything to help me customize my rulers to be associated with data that does not scale linearly. I mean, I need to build a frequency ruler that shows hash marks at logarithmic increments and (apparently) 'registerUnitName:' won't do the trick, as it seems to perform a constant linear conversion between my unit and postscript points.

- Is it possible to somehow inform NSRuler that it needs to increment the maks at log2(y) instead conversionFactor (y)?
- Do i need to draw the ruler and control its behaviour myself?


Thanks in advance for any tips.
_______________________________________________

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


  • Prev by Date: dynamic binding in initializers
  • Next by Date: Re: "Highlight" a window of another application
  • Previous by thread: Re: dynamic binding in initializers
  • Next by thread: Using asynchronous APIs with NSOperation
  • Index(es):
    • Date
    • Thread