• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 'NSTimer' may not respond to '+scheduledTimerWithTimeInterval:target:selector:userinfo:repeats:'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'NSTimer' may not respond to '+scheduledTimerWithTimeInterval:target:selector:userinfo:repeats:'


  • Subject: Re: 'NSTimer' may not respond to '+scheduledTimerWithTimeInterval:target:selector:userinfo:repeats:'
  • From: Dix Lorenz <email@hidden>
  • Date: Wed, 14 Jul 2010 19:20:33 +0200

> compiler warns me that 'NSTimer' may not respond to '+scheduledTimerWithTimeInterval:target:selector:userinfo:repeats:'

The correct call is

+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds target:(id)targetselector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats

Note the "userInfo" instead of "userinfo" :-)

Dix

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >'NSTimer' may not respond to '+scheduledTimerWithTimeInterval:target:selector:userinfo:repeats:' (From: Brad Lee <email@hidden>)

  • Prev by Date: 'NSTimer' may not respond to '+scheduledTimerWithTimeInterval:target:selector:userinfo:repeats:'
  • Next by Date: Re: 'NSTimer' may not respond to '+scheduledTimerWithTimeInterval:target:selector:userinfo:repeats:'
  • Previous by thread: 'NSTimer' may not respond to '+scheduledTimerWithTimeInterval:target:selector:userinfo:repeats:'
  • Next by thread: Re: 'NSTimer' may not respond to '+scheduledTimerWithTimeInterval:target:selector:userinfo:repeats:'
  • Index(es):
    • Date
    • Thread