Re: Why do we use -fobjc-arc instead of removing code with #define?
Re: Why do we use -fobjc-arc instead of removing code with #define?
- Subject: Re: Why do we use -fobjc-arc instead of removing code with #define?
- From: Graham Cox <email@hidden>
- Date: Sun, 24 Jun 2012 14:25:04 +1000
On 24/06/2012, at 1:55 PM, Jerry Krinock wrote:
> Why didn't Apple do the same thing for ARC?
Because ARC is a compiler technology that inserts -retain, -release automatically and silently into your code as it is compiled. The methods have to be there in order for memory management to work at runtime - ARC doesn't do anything at runtime, by then your code is exactly the same as if you'd written memory management manually (though hopefully without any mistakes!).
--Graham
_______________________________________________
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