Re: Killing a NSTimer
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