Re: init for immutable classes
Re: init for immutable classes
- Subject: Re: init for immutable classes
- From: Kyle Sluder <email@hidden>
- Date: Fri, 18 Sep 2009 08:06:06 -0700
On Sep 18, 2009, at 4:10 AM, Jon Hull <email@hidden> wrote:
I always write my init and dealloc methods using the setter
functions, but I am wondering what the proper convention is for
immutable classes? Should I write a private setter method, or is it
ok to just set the variable in init and release it in -dealloc. Thus:
Never use accessors in -init or -dealloc.
--Kyle Sluder
_______________________________________________
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