get slider value

Hi,

How can i get the current slider value???

You can get that from slider’s integerValue(), or slider’s doubleValue(), etc. These methods are all listed in the NSControl Class Reference (from which NSSlider inherits).

Ric

Hi,

all objects which inherit from NSControl (actually most of the UI elements) provide these methods to
control their value

“ doubleValue
“ setDoubleValue:
“ floatValue
“ setFloatValue:
“ intValue
“ setIntValue:
“ integerValue
“ setIntegerValue:
“ objectValue
“ setObjectValue:
“ stringValue
“ setStringValue:
“ setNeedsDisplay
“ attributedStringValue
“ setAttributedStringValue: