Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Well steppers first need a minimum and maximum value and a starting value:
Code:
[stepper setMinValue:0.0];
[stepper setMaxValue:100.0];
[steper setDoubleValue:50.0];
To know when the stepper value has changed, give it a target and action. This is usually done in Interface Builder. Then in the action method you can access the stepper's value like any other control (since it inherits from NSControl):
Code:
- (IBAction)stepperAction:(id)sender {
    [textField setDoubleValue:[stepper doubleValue]];
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.