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
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 mails | Author | Date |
|---|---|---|
| Glen Simmons | Dec 20, 23:04 | |
| Andreas Mayer | Dec 20, 23:27 | |
| Glen Simmons | Dec 21, 00:34 |






Cocoa mail archive

