• 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 and autorelease pools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC and autorelease pools


  • Subject: Re: ARC and autorelease pools
  • From: Marcel Weiher <email@hidden>
  • Date: Mon, 17 Feb 2014 09:08:10 +0100

On Feb 17, 2014, at 2:08 , Clark Smith Cox III <email@hidden> wrote:

>> I didn't say take them out. I said why do they need to return an autoreleased object.
>
> Because they always have, and their semantics cannot be changed without breaking decades worth of non-ARC code.

Sort of like the way GC did, where you had to have 2 versions of every framework, the GC version and the non-GC version.  If you had 2 versions of every framework and the compiler enforced a no autorelease rule, then you could have what you want.

However, one of the big points of ARC was to not require 2 versions of every framework, but instead provide compatibility between ARC and non-ARC code.  Therefore all the old requirements for autorelease, which have been explained so well by various posters, apply.

Cheers,

Marcel

_______________________________________________

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


  • Follow-Ups:
    • Re: ARC and autorelease pools
      • From: Kevin Meaney <email@hidden>
References: 
 >ARC and autorelease pools (From: Kevin Meaney <email@hidden>)
 >Re: ARC and autorelease pools (From: Jens Alfke <email@hidden>)
 >Re: ARC and autorelease pools (From: Kevin Meaney <email@hidden>)
 >Re: ARC and autorelease pools (From: Clark Smith Cox III <email@hidden>)

  • Prev by Date: Re: NSUndoManager, NSTableView with bindings
  • Next by Date: Re: ARC and autorelease pools
  • Previous by thread: Re: ARC and autorelease pools
  • Next by thread: Re: ARC and autorelease pools
  • Index(es):
    • Date
    • Thread