Skip navigation.
 
mlRe: Current tick mark index of NSSlider?
FROM : Andreas Mayer
DATE : Mon Dec 20 23:27:08 2004

Am 20.12.2004 um 23:04 Uhr schrieb Glen Simmons:

> Am I missing something?


You do have:
- the minimum value (min)
- the maximum value (max)
- the number of tick marks (n)
- the actual value (a)

You want:
- the tick mark corresponding to the actual value (x)

x = (a-min)/((max-min)/n)

Right?


Andreas

Related mailsAuthorDate
mlCurrent tick mark index of NSSlider? Glen Simmons Dec 20, 23:04
mlRe: Current tick mark index of NSSlider? Andreas Mayer Dec 20, 23:27
mlRe: Current tick mark index of NSSlider? Glen Simmons Dec 21, 00:34