Skip navigation.
 
mlCurrent tick mark index of NSSlider?
FROM : Glen Simmons
DATE : Mon Dec 20 23:04:08 2004

So there's a -tickMarkValueAtIndex: method to get from tick mark to
actual value, but there's no -tickMarkIndexForValue: for going the
other way. I need to know which tick mark my slider is set to. The only
way i see of doing it is iterating through the tick marks and comparing
the result of -tickMarkValueAtIndex: against the current value, which
seems a bit inefficient. Am I missing something?

Thanks,
Glen

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