Re: ARC dealloc best pratice
Re: ARC dealloc best pratice
- Subject: Re: ARC dealloc best pratice
- From: Jonathan Mitchell <email@hidden>
- Date: Fri, 06 Feb 2015 21:18:39 +0000
> On 6 Feb 2015, at 20:46, Jens Alfke <email@hidden> wrote:
>
> Come to think of it, I'm surprised that AppKit delegates are still unsafe-unretained. Why haven't these been converted to safe weak references yet?
I presume that AppKIt (all of it?) is not compiled using ARC and hence doesn’t get weak reference tracking et al?
Why isn AppKit compiled using ARC? Probably because it has a track record as it is and would likely gain nothing in a functional sense.
ARC works as advertised in general usage but managing unsafe_unretained references is as delicate a business as it is when using manual ref counting.
These sorts of difficulties are the inspiration of course for managed languages like C# which are largely free from these niceties.
However Obj-C’s dalliance with GC didn’t work out too well and there were as many issues with -finalise as there are with -dealloc.
Jonathan
_______________________________________________
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