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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to