NSRulerView Subclass and drawHashMarksAndLabelsInRect:(NSRect)rect;
jorge castellanos NSRulerView Subclass and drawHashMarksAndLabelsInRect:(NSRect)rect; Dec 06 2006, 07:39I need a ruler that displays the units in logarithmic or exponential
NSRulerView does allow to specify custom units, but they still increment
So, I decided to subclass NSRulerView and override
drawing my own hash marks and lables showing the desired "curve"
what I can't seem to find is how do I acces the registered units.
NSRulerView has an NSString that holds the unit name, and an NSDictionary (*
_cachedHashDict) which appears to hold precalculated data to draw the marks.
What data and in what order? If I wanted to calculate my own "increments"
how can I get the registered unit?
Thanks for the help in advance,
Don't just search. Find. Check out the new MSN Search!