I have an NSTimer that I'm trying to use to periodicly call a method.
The
timer gets created, but it doesn't call my method when it fires. Here's
my code, do you see anything wrong?
-(void)incrementProgressIndicator;
{
NSLog(@"incrementProgressIndicator"); //Never logs
//progressIndicator is an NSProgressIndicator IBOutlet of this object
//incrementAmount is a double ivar with a written accessor
if (progressIndicator != nil) {[progressIndicator incrementBy:[self
incrementAmount]];}
}
//incrementerTimer needs to be invalidated after it fires (iterations)
times, so we set up a
//second timer to wait (seconds * iterations) seconds and invalidate
the original timer
[NSTimer scheduledTimerWithTimeInterval:(seconds*iterations)
invocation:[NSInvocation invocationWithMethodSignature:
[incrementerTimer
methodSignatureForSelector:@selector(invalidate)]]
repeats:NO];
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden