• 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: Debug vs. Release build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer: Debug vs. Release build


  • Subject: Re: NSTimer: Debug vs. Release build
  • From: Graham Cox <email@hidden>
  • Date: Mon, 16 Mar 2009 21:39:37 +1100


On 16/03/2009, at 9:02 PM, Stefan Wolfrum wrote:

Interestingly, if I add the colon after @selector(timerFireMethod) to read @selector(timerFireMethod:)
the timerFireMethod doesn't get called anymore, in Debug AND Release builds.


btw, this method doesn't have any parameter, it's definition is:

- (void)timerFireMethod
{
  // do something
}


The colon is an integral part of the method's name, so timerFireMethod: and timerFireMethod are two different methods. So the result you report is what you'd expect.

The usual signature for a timer callback is:

- (void) timerFireMethod:(NSTimer*) timer

and naturally what you pass in @selector(...) must match exactly.

Maybe try that?


--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSTimer: Debug vs. Release build (From: Stefan Wolfrum <email@hidden>)
 >Re: NSTimer: Debug vs. Release build (From: "Paul Sanders" <email@hidden>)
 >Re: NSTimer: Debug vs. Release build (From: Dave Keck <email@hidden>)
 >Re: NSTimer: Debug vs. Release build (From: Stefan Wolfrum <email@hidden>)

  • Prev by Date: Re: NSTimer: Debug vs. Release build
  • Next by Date: Re: MobileMe API for uploading photos
  • Previous by thread: Re: NSTimer: Debug vs. Release build
  • Next by thread: Re: NSTimer: Debug vs. Release build
  • Index(es):
    • Date
    • Thread