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

TheKrillr

macrumors member
Original poster
Aug 26, 2006
98
0
Code:
- (IBAction)syncSliders:(id)sender {
	[slider2 setValue:[slider1 value]];
}

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

Enuratique

macrumors 6502
Apr 28, 2008
276
0
Code:
- (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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.