Subclass of NSSlider / UISlider. So, override these two methods -
//Assumes minValue not necessarily 0.0 -(double)doubleValue { double minVal = [self minValue]; double maxVal = [self maxValue]; double curValue = [super doubleValue]; double reverseVal = maxVal - curValue + minVal; return reverseVal; } -(void)setDoubleValue:(double)aDouble { double minVal = [self minValue]; double maxVal = [self maxValue]; double reverseVal = maxVal - aDouble + minVal; [super setDoubleValue:reverseVal]; }
This will lead to an inversion of the values, allowing to show at least on the right / up, and at the maximum on the left / bottom
source share