Re: Who owns a child view controller?
Re: Who owns a child view controller?
- Subject: Re: Who owns a child view controller?
- From: Jeremy Hughes <email@hidden>
- Date: Wed, 12 Jul 2017 21:16:45 +0100
> On 12 Jul 2017, at 19:25, Jens Alfke <email@hidden> wrote:
>
>>
>> On Jul 12, 2017, at 10:57 AM, Jeremy Hughes <email@hidden>
>> wrote:
>>
>> Wouldn’t it be ARC (rather than the consumer) that is balancing retains?
>
> Yes. ARC internally generates calls to -autorelease (or actually to some C
> functions in the runtime that invoke autorelease.)
Well, my original example was of native Swift objects that are released
instantly and Cocoa objects that are not, and you suggested that the Cocoa
objects are using autorelease - which makes sense, because Cocoa has to support
ARC and non-ARC code.
Is there any evidence that ARC is internally generating autorelease calls for
native Swift code?
Jeremy
_______________________________________________
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