Search code examples
objective-cxcodemacoscocoansslider

change NSSlider Value programmatically


Is there a way to make an IBOutlet of an NSSlider and then be able to change its value programmatically? slider.value = ...does not work.

Thanks!


Solution

  • You can use the methods of NSControl.

    Example: [self.slider setDoubleValue:0.1];