> On 12 Jul 2017, at 19:25, Jens Alfke <[email protected]> wrote: > >> >> On Jul 12, 2017, at 10:57 AM, Jeremy Hughes <[email protected]> >> 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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
