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: Roland King <email@hidden>
- Date: Sun, 18 Mar 2012 08:12:20 +0800
>
> 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?
Yes it would be a waste of time I think. If the code is working, leave it alone. I love ARC although I'm pleased I learned manual-retain-release first and now don't have to worry about 99% of memory issues.
I like properties, even private ones, because I like to split the interface of the class, even the methods it only uses itself, from the implementation. So often I find I start with
@synthesize foo=_foo;
and by the time I get to the end of the project I've written custom foo: and setFoo: methods which do something else too.
But it's all in the end just style and what makes you most productive. I follow one pattern which works for me.
_______________________________________________
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