On Feb 16, 2014, at 7:27 AM, Kevin Meaney <k...@yvs.eu.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com