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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to