Re: Overriding the release mehod
Re: Overriding the release mehod
- Subject: Re: Overriding the release mehod
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 25 Jan 2017 11:20:45 -0500
Dave is working with a framework I wrote, which makes use of OmniGroup's "weak retain" concept from many years ago. See Ken Case's writeup at https://github.com/jnozzi/cocoadev.com/blob/888a4ffa2ab233762728d5e2f23c18a83feb3a6e/markdown/WeakReferences.md <https://github.com/jnozzi/cocoadev.com/blob/888a4ffa2ab233762728d5e2f23c18a83feb3a6e/markdown/WeakReferences.md>
There are more modern ways to do this now, but my framework has to work with older versions of macOS.
In my framework, the "weak retain" stuff is used in the context of an accessibility API observer that watches for the destruction of an accessibility API user interface element. This is a context where circular retain counts must be dealt with.
Bill
> On Jan 25, 2017, at 10:55 AM, Mike Abdullah <email@hidden <mailto:email@hidden>> wrote:
>
> You’re inevitably going to get asked this:
> Why on earth are you overriding release? It’s an incredibly niche thing to do, and the answer probably depends a lot on why you’re overriding it.
--
Bill Cheeseman - email@hidden
_______________________________________________
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