NSRulerView: distance between two neighbouring hash marks
NSRulerView: distance between two neighbouring hash marks
- Subject: NSRulerView: distance between two neighbouring hash marks
- From: Sergei Borodavkin <email@hidden>
- Date: Tue, 30 May 2006 13:25:12 +0300
Hello there!
I'm trying to implement creating of objects with certain precision.
For example, the circle radius can not be 1.02 cm, nor 0.97 cm - it
can be only 1 cm, or, say, 1.5 cm. I believe that it would be correct
to ask my NSRulerView for the distance between two closest hash marks
drawn on it, and to set my precision step to be equal to that
distance. The main difficulty is that the distance is changed when
zooming in and out. Due to it, I don't want to calculate the
precision manually, because I have a lot of custom measurement units
in my app, both metric and non-metric (inches, meters, yards, feet,
and lot more), so it would be a real pain.
So, guys, can you please give me any ideas on how to get the distance
between two NSRulerView's neighbour hash marks?
Thanks a lot in advance!
Respectfully,
Sergei Borodavkin,
BeLight Software, Ltd.,
Software Developer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden