Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 13, 2008, 06: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, 08: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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Missing functions or i'm just dumb genome2k Site and Forum Feedback 5 Aug 4, 2011 01:26 PM
I'm not sayin' ... I'm just sayin' citizenzen Politics, Religion, Social Issues 25 Jul 23, 2011 11:52 AM
Is Finder lacking or I'm just not doing it right? Acasha OS X 13 Jul 28, 2010 12:54 PM
Odd problem or just a limitation of the Go5200? rj-300zx Mac and PC Games 4 Aug 4, 2009 10:23 AM
Odd error message BWhaler General Mac Discussion 2 Aug 16, 2004 02:51 AM


All times are GMT -5. The time now is 06:16 AM.

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

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