Re: Classes incompatible with weak references
Re: Classes incompatible with weak references
- Subject: Re: Classes incompatible with weak references
- From: Mike Abdullah <email@hidden>
- Date: Tue, 14 Aug 2012 11:30:11 +0100
On 13 Aug 2012, at 16:56, Kyle Sluder <email@hidden> wrote:
> On Aug 13, 2012, at 8:42 AM, Ben <email@hidden> wrote:
>
>> I see in the documentation - and from a compiler error - that some classes are not compatible with weak references.
>>
>> What makes these classes incompatible?
>
> They have custom implementations of -retain and -release.
I forgot to note earlier, that I believe the reason some of these classes have custom reference counting implementations is so that they can monitor any bindings made from nib files and handle teardown appropriately.
_______________________________________________
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