Re: NSTimer: Debug vs. Release build
Re: NSTimer: Debug vs. Release build
- Subject: Re: NSTimer: Debug vs. Release build
- From: Stefan Wolfrum <email@hidden>
- Date: Mon, 16 Mar 2009 11:02:01 +0100
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
}
Am 15.03.2009 um 13:02 schrieb Dave Keck:
Missing colon after timerFireMethod (within the @selector
statement). It
catches me out too. Not sure why it works for you in debug
builds. I have
not observed that behaviour.
The method that the timer calls isn't required to take an argument to
work. Not sure what the best practices/docs say about this, though.
Perhaps the run loop isn't running?
The fact that the debug/release setting affects whether it works is
very strange. I suspect it's some other variable.
David
_______________________________________________
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