PDA

View Full Version : Odd Error, Or I'm Just Newbish




TheKrillr
Jul 13, 2008, 06:14 AM
- (IBAction)syncSliders:(id)sender {
[slider2 setValue:[slider1 value]];
}

I get told that is an incompatible type for setValue. Any ideas?



Enuratique
Jul 13, 2008, 08:36 PM
- (IBAction)syncSliders:(id)sender {
[slider2 setValue:[slider1 value]];
}

I get told that is an incompatible type for setValue. Any ideas?

Is it because you need to supply the animated parameter as well? The signature for setValue according to the documentation takes in the float, which you're supplying correctly, you just need to supply whether you want the value change to be animated or not.