Re: ARC and autorelease pools
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