Re: NSTimer: Debug vs. Release build

2009-03-16 Thread Michael Ash
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

Re: NSTimer: Debug vs. Release build

2009-03-16 Thread Martin Wierschin
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

Re: NSTimer: Debug vs. Release build

2009-03-16 Thread Scott Ribe
> 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 ___

Re: NSTimer: Debug vs. Release build

2009-03-16 Thread Graham Cox
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

Re: NSTimer: Debug vs. Release build

2009-03-16 Thread Stefan Wolfrum
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 }

Re: NSTimer: Debug vs. Release build

2009-03-15 Thread 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

Re: NSTimer: Debug vs. Release build

2009-03-15 Thread Paul Sanders
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

NSTimer: Debug vs. Release build

2009-03-15 Thread Stefan Wolfrum
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