Re: to implement a 1 sec repeating timer in a separate thread

2009-10-22 Thread Dave Keck
Before I try to respond, I'd just like to say you've been mentioning threads a lot, but you haven't said anything that convinces me that more than one thread is necessary for what you're trying to do. Unless you're doing some serious number crunching, video encoding, curing cancer, etc. it's likely

Re: to implement a 1 sec repeating timer in a separate thread

2009-10-22 Thread Nick Rogers
Hi, Thanks for the reply. My question was very vague, I admit. But now I have moved to your suggestion. I'm setting up the timer via [NSTimer scheduledTimerWithTimeInterval: 1.0 target: self selector: @selector(doSomething:) userInfo: nil repeats: YES]; But the doSomething is not getting cal

Re: to implement a 1 sec repeating timer in a separate thread

2009-10-22 Thread Dave Keck
I'm having a really hard time making sense of you message... > I have been trying to implement a 1 second repeating timer, but its leading > to retaining the target object That's expected behavior - NSTimers retain their targets. The target won't be deallocated until the timer has been invalidated