Re: CALayer retain count
Re: CALayer retain count
- Subject: Re: CALayer retain count
- From: "Sherm Pendley" <email@hidden>
- Date: Thu, 21 Aug 2008 11:20:36 -0400
On Thu, Aug 21, 2008 at 10:06 AM, Shaun Larkin <email@hidden> wrote:
> Why is it that when you set a CALayer property it's retain count increases +1 ?
The obvious reason is that something else (i.e., not your code) is
retaining it. Standard memory management requires that "something
else" to match its retain with a release when its done with it, so
it's not something you need to worry about in your own code.
This is why it's a bad idea to examine retain counts - they're not a
good indicator of what *you* need to write and/or debug.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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