• 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: Charles Srstka <email@hidden>
  • Date: Sun, 16 Feb 2014 10:27:21 -0600

On Feb 16, 2014, at 7:27 AM, Kevin Meaney <email@hidden> wrote:

> Why do these methods need to return an autoreleased object, why can't they behave the same as:
>
> NSString *myString = [[NSString alloc] initWithFormat:@"%@", @"my String];
>
> Is the only reason for interoperability with manual retain-release code?

Foundation, along with the other system frameworks, is not written in ARC. It's written in manual retain-release.

If/when Apple eventually converts the frameworks to ARC, they will have to remove the 32-bit versions of the binaries, since ARC is only compatible with the 64-bit runtime. This will break backward compatibility with all 32-bit apps, including all Carbon apps.

I don't know about you, but I'm perfectly happy if Apple decides to take their time getting around to that.

Charles

_______________________________________________

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 and autorelease pools (From: Kevin Meaney <email@hidden>)

  • Prev by Date: Why is NSCollectionViews drawRect called first instead of subview (isOpaque:YES) bug?
  • Next by Date: NSUndoManager, NSTableView with bindings
  • Previous by thread: Re: ARC and autorelease pools
  • Next by thread: Re: ARC and autorelease pools
  • Index(es):
    • Date
    • Thread