CAAnimation retains its delegate
CAAnimation retains its delegate
- Subject: CAAnimation retains its delegate
- From: Matt Neuburg <email@hidden>
- Date: Mon, 02 Nov 2009 18:35:34 -0800
- Thread-topic: CAAnimation retains its delegate
Apropos of nothing at all, here's a little tip from the Department of
Lessons Learned: A CAAnimation retains its delegate, which is a severe
exception to the general rules and expectations about memory management. Of
course one can see why this might be (animations take time, so let's make
sure our delegate still exists when we need it later), and it is called out
loudly in the docs. But you might set the delegate without reading that part
of the docs.
I encountered this when I accidentally created a retain cycle. Fortunately I
was able to discover and track down the retain cycle quite easily, thanks to
the wonderful Instruments app. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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