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 (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