• 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
NSRulerView: distance between two neighbouring hash marks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Image cache: Where is it and how do I refresh it?
  • Next by Date: DIsplaying non-english characters
  • Previous by thread: Re: addTrackingRect: some events are missing
  • Next by thread: DIsplaying non-english characters
  • Index(es):
    • Date
    • Thread