change NSSlider Value programmatically

2 Solutions Collect From Internet About “change NSSlider Value programmatically”

You can use the methods of NSControl.

Example:
[self.slider setDoubleValue:0.1];

Swift answer to this question is to use the doubleValue property to access the slider value in OSX:

slider.doubleValue = 0.1 

print(slider.doubleValue)