• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CAAnimation retains its delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSObjectController -selectedObjects
  • Next by Date: [MEET] (Sydney/Australia) CHANGE OF VENUE - CocoaHeads/NSCoder Sydney - November 5th - Mac/iPhone hack night
  • Previous by thread: Re: NSObjectController -selectedObjects
  • Next by thread: [MEET] (Sydney/Australia) CHANGE OF VENUE - CocoaHeads/NSCoder Sydney - November 5th - Mac/iPhone hack night
  • Index(es):
    • Date
    • Thread