• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to invalidate NSTimer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to invalidate NSTimer
      • From: John Pannell <email@hidden>
  • Prev by Date: Re: NSXLMDocument and malformed XML
  • Next by Date: Re: NSXLMDocument and malformed XML
  • Previous by thread: [ANN] MCMPBar 0.1 and other things
  • Next by thread: Re: How to invalidate NSTimer
  • Index(es):
    • Date
    • Thread