• 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 and non linear measurements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSRuler and non linear measurements


  • Subject: NSRuler and non linear measurements
  • From: Carlos Eduardo Mello <email@hidden>
  • Date: Fri, 25 Feb 2011 12:25:12 -0300

(Sorry if you are receiving this message again, but since i got zero response the first time, i imagined it might not have been delivered...)

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


  • Follow-Ups:
    • Re: NSRuler and non linear measurements
      • From: Quincey Morris <email@hidden>
    • Re: NSRuler and non linear measurements
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Help Mixing Objective-C & Objective-C++
  • Next by Date: Re: NSNumberFormatter issue with method -setLocale
  • Previous by thread: Re: original image size is not retained when it is exported as PDF using CGImageDestinationRef
  • Next by thread: Re: NSRuler and non linear measurements
  • Index(es):
    • Date
    • Thread