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

Re: Tracking the retain count


  • Subject: Re: Tracking the retain count
  • From: Graham Cox <email@hidden>
  • Date: Thu, 21 May 2015 11:08:22 +1000

> On 21 May 2015, at 10:38 am, Britt Durbrow <email@hidden> wrote:
>
> Also, generally speaking, I don’t want to have to go back to a manual retain/release model for the whole app (which is basically what using NSDiscardableContent entails; even though it isn’t literal -retain and -release calls; the pitfalls are similar).
>


The thing is that the concept of reference counting *in general* is a good fit for your problem. The difficulty is that leveraging the particular ref counting done by retain/release, while tempting, is not such a good fit. Ergo, you have to implement something equivalent alongside it. There ain’t no such thing as a free lunch.

--Graham



_______________________________________________

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: 
 >Re: Tracking the retain count (From: Britt Durbrow <email@hidden>)

  • Prev by Date: Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • Next by Date: Re: NSFontPanel swamping the responder chain (and crashing)
  • Previous by thread: Re: Tracking the retain count
  • Next by thread: Re: Tracking the retain count
  • Index(es):
    • Date
    • Thread