Re: question about -init methods
Re: question about -init methods
- Subject: Re: question about -init methods
- From: Sherm Pendley <email@hidden>
- Date: Fri, 7 Jul 2006 10:24:19 -0400
On Jul 7, 2006, at 8:30 AM, Jim Correia wrote:
On Jul 7, 2006, at 4:52 AM, Rob Ross wrote:
Is is mandatory that Objective-C class instances have their
designated initializer called only once? Can you design an
initializer so that it can be called again to re-initialize the
instance back to its initial state, or is that considered bad form?
-init<XXX> should not be sent to an already initialized object.
Of course, there's no reason you couldn't create a -reset method that
would reset instance variables back to the state they were in when
the object was first created.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden