• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: There's obviously something I don't understand about autorelease.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: There's obviously something I don't understand about autorelease.
      • From: Richard Somers <email@hidden>
References: 
 >Re: There's obviously something I don't understand about autorelease. (From: G S <email@hidden>)

  • Prev by Date: Re: There's obviously something I don't understand about autorelease.
  • Next by Date: Re: There's obviously something I don't understand about NSDate.
  • Previous by thread: Re: There's obviously something I don't understand about autorelease.
  • Next by thread: Re: There's obviously something I don't understand about autorelease.
  • Index(es):
    • Date
    • Thread