Re: info gc-roots interpretation
Re: info gc-roots interpretation
- Subject: Re: info gc-roots interpretation
- From: Joar Wingfors <email@hidden>
- Date: Wed, 21 Oct 2009 17:05:43 -0700
On 21 okt 2009, at 09.44, Nick Rogers wrote:
Here timer is an ivar in Volume of type NSTimer*. Is setting timer
in the above method causing the problem?
Timers retain (RC) / strongly reference (GC) their targets. In general
you should keep a reference to the timer so that you can invalidate it
when you don't need it any more - This is in particular important for
repeating timers.
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden