How can NSSlider be customised to provide a non-linear scale in cocoa? i.e - 0, 2, 4, 6, 10.
With the slider constrained to stopping on tick marks only, I want the slider to stop on 0, 2, 4, 6, 10 (and not 8 for instance). Thanks.
How can NSSlider be customised to provide a non-linear scale in cocoa? i.e - 0, 2, 4, 6, 10.
With the slider constrained to stopping on tick marks only, I want the slider to stop on 0, 2, 4, 6, 10 (and not 8 for instance). Thanks.
Quickly written example based on an array with the desired values:
SampleAppDelegate.h
SampleAppDelegate.h
Interface Builder:
- Add NSSlider (connect IBOutlet / connect IBAction / enable continuos updating)
- Add NSTextField (connect IBOutlet)
Result: