Re: ARC vs Manual Reference Counting
Re: ARC vs Manual Reference Counting
- Subject: Re: ARC vs Manual Reference Counting
- From: Andy Lee <email@hidden>
- Date: Wed, 11 Sep 2013 11:41:34 -0400
On Sep 11, 2013, at 6:37 AM, Jean-Daniel Dupas <email@hidden> wrote:
>>> and that while in most code those would be lost in the noise, in some cases people would need to help ARC out with things like __unsafe_unretained.
>>
>> Hmm…I always thought that __unsafe_unretained was for instance variables, but given what you just wrote, I guess it could be used for normal automatic variables to opt them out of ARC?
>>
>
> Yes. it works to disable ARC for arguments and other local variables.
And you can put __unsafe_unretained objects in struct declarations, if you feel you must, and ARC won't complain.
--Andy
_______________________________________________
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