There's a NSSlider with code as following
- (IBAction)sliderChanged:(id)sender {
NSSlider *slider = sender;
NSInteger value = slider.integerValue;
NSLog(@"%ld",value);
}
Because I set slider.continuous = YES;
, NSLog
will print in real time, this is right, and I need to add more, except the feature above, I want to get the value when the change is finished, any ideas? Thanks a lot.