Re: There's obviously something I don't understand about autorelease.
Re: There's obviously something I don't understand about autorelease.
- Subject: Re: There's obviously something I don't understand about autorelease.
- From: Greg Parker <email@hidden>
- Date: Sat, 17 Mar 2012 18:49:00 -0700
On Mar 17, 2012, at 5:05 PM, G S wrote:
> I would've converted my project to ARC had time permitted. I will say that
> this new understanding does make me reconsider my opinion on the merits of
> properties (meaning I think they have more merit than I used to).
>
> Would it be a waste of time to go through and add properties for my members
> before converting to ARC? Does it make any difference?
With ARC, instance variables by default get the same automatic memory management as retaining properties. When you assign to a strong ivar in ARC any old value is released and the new value is retained. You don't need to use properties in ARC solely to get their memory management behavior.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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