How can I get the value of an NSSlider continuously?
问题 It seems like NSSlider in Cocoa does not provide a delegate to receive an event like Value Changed for a UISlider . How can I get the value of an NSSlider continuously and display it in an NSTextField , for example? 回答1: You need to research Cocoa's Target/Action mechanism. This is a basic Cocoa concept you'll need to understand. The slider (and any other control) can be given a target (some controller object) and an action (the method to call against that controller object). The action is