How to invalidate NSTimer
How to invalidate NSTimer
- Subject: How to invalidate NSTimer
- From: Aalok <email@hidden>
- Date: Fri, 26 May 2006 09:50:49 +0530
Hi All,
I want to start timer to perform some specific task.
[NSTimer scheduledTimerWithTimeInterval:10.0
target:self
selector:@selector(handleTimerAction:)
userInfo:nil
repeats:YES];
This the function I am using. I want to invalidate this timer on some
user event (like disconnect.) Ånd want to start again when user
connects again.
I do not find any method to invalidate timer. I can not user
-invalidate as it is an instance method. and
scheduledTimerWithTimeInterval is a class method.
Please provide any help possible.
Regards,
Aalok
--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden