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 = m...@tidbits.com, <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 (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