Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-13-2010, 11:53 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default NSTimer warning

Call to scheduledTimerWithTimeInterval: target: selector: userInfo: repeats:
is not getting executed and giving a warning.

warning: 'NSTimer' may not respond to '-scheduledTimerWithTimeInterval:Target:selector:use rInfo:repeat:'

Suggestions to resolve this problem??

Thanks,
San
santosh_kumar is offline   Reply With Quote
Old 10-14-2010, 12:40 AM   #2 (permalink)
Pro. Game Developer
iPhone Dev SDK Supporter
 
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 2,176
Kalimba is on a distinguished road
Default

Quote:
Originally Posted by santosh_kumar View Post
Call to scheduledTimerWithTimeInterval: target: selector: userInfo: repeats:
is not getting executed and giving a warning.

warning: 'NSTimer' may not respond to '-scheduledTimerWithTimeInterval:Target:selector:use rInfo:repeat:'

Suggestions to resolve this problem??

Thanks,
San
You've got the method name spelled two different ways in your post. Which spelling is actually used in your source code?
__________________
~~ Word Flurry ~~ App Store / Website / Facebook
Kalimba is offline   Reply With Quote
Old 10-14-2010, 01:51 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default Hi

[NSTimer scheduledTimerWithTimeInterval:0.1 Target:self selector:@selector(mymethod) userInfo:nil repeat:YES];
santosh_kumar is offline   Reply With Quote
Old 10-14-2010, 01:55 AM   #4 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default Hi

Quote:
Originally Posted by Kalimba View Post
You've got the method name spelled two different ways in your post. Which spelling is actually used in your source code?
.

myTimer=[NSTimer scheduledTimerWithTimeInterval:0.1 Target:self selector:@selector(mymethod) userInfo:nil repeat:YES];
santosh_kumar is offline   Reply With Quote
Old 10-14-2010, 02:22 AM   #5 (permalink)
Pro. Game Developer
iPhone Dev SDK Supporter
 
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 2,176
Kalimba is on a distinguished road
Default

Quote:
Originally Posted by santosh_kumar View Post
.

myTimer=[NSTimer scheduledTimerWithTimeInterval:0.1 Target:self selector:@selector(mymethod) userInfo:nil repeat:YES];
Look at the documentation for the NSTimer class and see how the method name you're trying to call differs in the docs, compared to the code in your source.
__________________
~~ Word Flurry ~~ App Store / Website / Facebook
Kalimba is offline   Reply With Quote
Old 10-14-2010, 06:03 AM   #6 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default I got it

Quote:
Originally Posted by Kalimba View Post
Look at the documentation for the NSTimer class and see how the method name you're trying to call differs in the docs, compared to the code in your source.
There was a typing mistake, i typed 'T' instead of 't' in 'target:'

myTimer=[NSTimer scheduledTimerWithTimeInterval:0.1 Target:self selector:@selector(mymethod) userInfo:nil repeat:YES];

corrected:

myTimer=[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(mymethod) userInfo:nil repeat:YES];

Refer:
http://stackoverflow.com/questions/1...-i-use-nstimer

Last edited by santosh_kumar; 10-14-2010 at 06:06 AM.
santosh_kumar is offline   Reply With Quote
Old 10-14-2010, 08:49 AM   #7 (permalink)
Pro. Game Developer
iPhone Dev SDK Supporter
 
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 2,176
Kalimba is on a distinguished road
Default

Quote:
Originally Posted by santosh_kumar View Post
There was a typing mistake, i typed 'T' instead of 't' in 'target:'

myTimer=[NSTimer scheduledTimerWithTimeInterval:0.1 Target:self selector:@selector(mymethod) userInfo:nil repeat:YES];

corrected:

myTimer=[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(mymethod) userInfo:nil repeat:YES];

Refer:
How do I use NSTimer - Stack Overflow
If the "corrected" version above is what you are currently using in your code, I'd say you still have a typo that needs to be addressed.
__________________
~~ Word Flurry ~~ App Store / Website / Facebook
Kalimba is offline   Reply With Quote
Old 10-14-2010, 09:19 AM   #8 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default

Quote:
Originally Posted by Kalimba View Post
If the "corrected" version above is what you are currently using in your code, I'd say you still have a typo that needs to be addressed.
your welcome to address the typo mistakes.
santosh_kumar is offline   Reply With Quote
Old 10-14-2010, 09:23 AM   #9 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 577
Speed is on a distinguished road
Default

Quote:
Originally Posted by santosh_kumar View Post
your welcome to address the typo mistakes.
myTimer=[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(mymethod) userInfo:nil repeat:YES];

Look within the bolded statement.
Speed is offline   Reply With Quote
Old 10-14-2010, 09:30 AM   #10 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default

Quote:
Originally Posted by Speed View Post
myTimer=[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(mymethod) userInfo:nil repeat:YES];

Look within the bolded statement.
ohk i overlooked 's' in

[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(mymethod) userInfo:nil repeats:YES];

am i right? but it is working properly, Can u give explanation Kalimba?
santosh_kumar is offline   Reply With Quote
Old 10-14-2010, 09:31 AM   #11 (permalink)
Pro. Game Developer
iPhone Dev SDK Supporter
 
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 2,176
Kalimba is on a distinguished road
Default

Quote:
Originally Posted by santosh_kumar View Post
your welcome to address the typo mistakes.
I could do that, but you'd be missing a learning opportunity.
__________________
~~ Word Flurry ~~ App Store / Website / Facebook
Kalimba is offline   Reply With Quote
Old 10-14-2010, 09:34 AM   #12 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default

Quote:
Originally Posted by Kalimba View Post
I could do that, but you'd be missing a learning opportunity.
Heh thanks
but it is working properly, what can you say about that?
santosh_kumar is offline   Reply With Quote
Old 10-14-2010, 09:39 AM   #13 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 72
santosh_kumar is on a distinguished road
Default

Quote:
Originally Posted by Kalimba View Post
I could do that, but you'd be missing a learning opportunity.
there is no typing mistake in source.
Sorry
santosh_kumar is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone & ipod touch apps

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 347
7 members and 340 guests
Desert Diva, dre, hain, HemiMG, lendo, mottdog, oceanlablight
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,895
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:05 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0