• 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 to scheduledtimerWithInterval
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer May not to scheduledtimerWithInterval


  • Subject: Re: NSTimer May not to scheduledtimerWithInterval
  • From: "Shawn Erickson" <email@hidden>
  • Date: Fri, 16 Feb 2007 09:03:30 -0800

On 2/16/07, Daniel Bruchez <email@hidden> wrote:
Hi:

I'm new to Xcode and was trying to add a Timer Event to my application. I
get the following warning when I tried add this code to my application:

warning:"NSTimer may not respond to
'+scheduledTimerWithInterval:target:selector:userInfo:repeats:'
Messages without a matching method signature will be assumed to return'id'
and accept'...' as arguments.)

Here's a snip of my code-->>

 //Create Timer
 scantimer = [ [NSTimer scheduledTimerWithInterval:1.0

You have the wrong method name at the start, you have...

scheduledTimerWithInterval:

... should be ...

scheduledTimerWithTimeInterval:

-Shawn
_______________________________________________
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 to scheduledtimerWithInterval (From: Daniel Bruchez <email@hidden>)

  • Prev by Date: NSTimer May not to scheduledtimerWithInterval
  • Next by Date: Re: NSTimer May not to scheduledtimerWithInterval
  • Previous by thread: NSTimer May not to scheduledtimerWithInterval
  • Next by thread: Re: NSTimer May not to scheduledtimerWithInterval
  • Index(es):
    • Date
    • Thread