• 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
Re: CALayer retain count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >CALayer retain count (From: Shaun Larkin <email@hidden>)

  • Prev by Date: Re: Design Question: Pro & Cons of KVC/KVO
  • Next by Date: Re: Design Question: Pro & Cons of KVC/KVO
  • Previous by thread: CALayer retain count
  • Next by thread: Re: CALayer retain count
  • Index(es):
    • Date
    • Thread