On Mon, Mar 16, 2009 at 8:34 PM, Martin Wierschin wrote:
>>> btw, this method doesn't have any parameter, it's definition is:
>>
>> Whether you need it or not, you must take it, because that's the method
>> signature that NSTimer expects to call back.
>
> I don't want to confuse the issue for Stef
btw, this method doesn't have any parameter, it's definition is:
Whether you need it or not, you must take it, because that's the
method
signature that NSTimer expects to call back.
I don't want to confuse the issue for Stefan, as matching up selector/
method names exactly is obviously ver
> btw, this method doesn't have any parameter, it's definition is:
Whether you need it or not, you must take it, because that's the method
signature that NSTimer expects to call back.
--
Scott Ribe
scott_r...@killerbytes.com
http://www.killerbytes.com/
(303) 722-0567 voice
___
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
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
}
> 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
2009 11:32 AM
Subject: NSTimer: Debug vs. Release build
Hello nice people,
I wrote a little OS X application that uses a NSTimer. I initialize it
like this:
repeatingTimer = [NSTimer scheduledTimerWithTimeInterval:4.0
target:self
selector:@selector(timer
Hello nice people,
I wrote a little OS X application that uses a NSTimer. I initialize it
like this:
repeatingTimer = [NSTimer scheduledTimerWithTimeInterval:4.0
target:self
selector:@selector(timerFireMethod)
userInfo:nil repeat