• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ARC dealloc best pratice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC dealloc best pratice


  • Subject: Re: ARC dealloc best pratice
  • From: Greg Parker <email@hidden>
  • Date: Fri, 06 Feb 2015 13:35:34 -0800

> On Feb 6, 2015, at 1:18 PM, Jonathan Mitchell <email@hidden> wrote:
>
>> 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?

The weak reference machinery is available to non-ARC code by calling the runtime functions directly. The system is fragile if you write it by hand, though, so we don't generally recommend it.


> 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.

The primary reason is that there is no way to compile a single library that uses ARC and also supports GC. AppKit needs to support GC so it can't use ARC.


--
Greg Parker     email@hidden     Runtime Wrangler



_______________________________________________

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


References: 
 >ARC dealloc best pratice (From: Jonathan Mitchell <email@hidden>)
 >Re: ARC dealloc best pratice (From: Jens Alfke <email@hidden>)
 >Re: ARC dealloc best pratice (From: Jonathan Mitchell <email@hidden>)
 >Re: ARC dealloc best pratice (From: Jens Alfke <email@hidden>)
 >Re: ARC dealloc best pratice (From: Jonathan Mitchell <email@hidden>)

  • Prev by Date: Re: ARC dealloc best pratice
  • Next by Date: Re: ARC dealloc best pratice
  • Previous by thread: Re: ARC dealloc best pratice
  • Next by thread: Re: ARC dealloc best pratice
  • Index(es):
    • Date
    • Thread