Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 13, 2008, 07:14 AM   #1
TheKrillr
macrumors member
 
Join Date: Aug 2006
Odd Error, Or I'm Just Newbish

Code:
- (IBAction)syncSliders:(id)sender {
	[slider2 setValue:[slider1 value]];
}
I get told that is an incompatible type for setValue. Any ideas?
TheKrillr is offline   0 Reply With Quote
Old Jul 13, 2008, 09:36 PM   #2
Enuratique
macrumors 6502
 
Join Date: Apr 2008
Quote:
Originally Posted by TheKrillr View Post
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.
__________________
24" Aluminum iMac, 2.8 GHz, 4 GB RAM, 500 GB HD, 8800 GS; Black 32GB iPhone 4; Black 30GB 5th Gen iPod
Enuratique is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Very Newbish Question Agent Moose Mac Programming 5 May 27, 2014 07:33 PM
Odd error on Seagate 3TB GoFlex - "No Slices Found" treehorn Mac Peripherals 5 Mar 25, 2014 12:41 AM
-fobjc-arc is not supported error and duplicate symbol error in compiling mehdies Mac Programming 3 Sep 24, 2013 02:57 AM
Odd issue with my new 21.5 iMac (keystrokes making an odd sound emit from speakers) Whackintosh iMac 5 Mar 12, 2013 08:40 PM
Very odd error in looping - possible bug in AWK maths library? VulchR Mac Programming 4 Dec 18, 2012 05:51 AM

Forum Jump

All times are GMT -5. The time now is 12:55 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC