Re: Quick NSTimer question..
Re: Quick NSTimer question..
- Subject: Re: Quick NSTimer question..
- From: Jens Bauer <email@hidden>
- Date: Wed, 12 Dec 2001 19:03:25 +0100
Hi John,
On Tue, 11 Dec, 2001, John C. Randolph <email@hidden> wrote:
>
Do NSTimers need to be retained and released, or are the
>
-scheduledTimerWithTimeInterval... and -invalidate messages
>
sufficient to create and destroy them cleanly?
If you look at the CircleView source...
/Developer/Examples/AppKit/CircleView/CircleView.m
- (IBAction)stopAnimation:(id)sender {
[timer invalidate];
[timer release];
timer = nil;
}
..you will see that it's invalidated and then released. Since this
source comes
from Apple, I'd think that it would be enough. :)
Love,
Jens