Re: NSTimer: Debug vs. Release build
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