Timer (NSTimer) won't work...why?

Posted by eco_bach on Stack Overflow See other posts from Stack Overflow or by eco_bach
Published on 2010-06-10T23:16:24Z Indexed on 2010/06/10 23:22 UTC
Read the original article Hit count: 87

Filed under:
|
|

Hi
I have the following, can anyone familiar with NSTimer tell me why it isn't working?? I've tried various values for an interval but no luck.

self.timer = [NSTimer scheduledTimerWithTimeInterval:.5  
              target:self  
              selector:@selector(update:)      
              userInfo:nil  repeats:YES];

And then my selector method

- (void)update:(NSTimer*)timer
{    
 //DOESN"T TRACE OUT!
 NSLog(@" update:theTimer and userInfo = %@",timer.userInfo);
}

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about best-practices