• 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
Re: Killing a NSTimer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing a NSTimer


  • Subject: Re: Killing a NSTimer
  • From: Fritz Anderson <email@hidden>
  • Date: Sat, 11 Jun 2005 16:12:09 -0500

Not in the case of the OP. He allocated the NSTimer using a convenience class method (autorelease), and added it directly to the run loop (retain). The invalidate will take it out of the run loop's list, and release it, bringing the reference count to zero. There are no other retained references to the timer.

    -- F

On 11 Jun 2005, at 1:58 PM, Adam Leonard wrote:

And in addition to invalidate, remember to release the timer.

On Jun 11, 2005, at 11:05 AM, Pontus Ilbring wrote:


On 6/11/05, Jerry Brace <email@hidden> wrote:


I'm using an NSTimer for an event which fires once after it is set
(Repeats:NO).

I'd like to know how to cancel/remove this timer in another event.



Tried the timer's invalidate method?



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40manoverboard.org


This email sent to email@hidden



_______________________________________________ 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
References: 
 >Killing a NSTimer (From: Jerry Brace <email@hidden>)
 >Re: Killing a NSTimer (From: Pontus Ilbring <email@hidden>)
 >Re: Killing a NSTimer (From: Adam Leonard <email@hidden>)

  • Prev by Date: Re: Killing a NSTimer
  • Next by Date: Re: Updates from Download
  • Previous by thread: Re: Killing a NSTimer
  • Next by thread: Re: Killing a NSTimer
  • Index(es):
    • Date
    • Thread