text box


i have one window in which i have one slider, image well and text box. i have connected slider to image well so that image change with slider value. i have set the slider to tick only. now i want to display slider value in text box.

i have tried myText’s takeIntegerValueFrom (slider)

but its not working…

You need to pay attention to the syntax. If a cocoa method takes an argument, then in ASOC you have to have an underscore then parentheses with the argument inside. So: myText’s takeIntegerValueFrom_(slider) will work if “slider” is the IBOutlet for your slider.

thanks a lot