How do I wire up an action programmatically to my NSSlider to detect when the value changes?
I'm looking for the Cocoa equivalent of a UISlider that would be done with the following code.
[myUISlider addTarget:self action:@selector(valueChanged:) forControlEvents:UIControlEventValueChanged];