Re: best practices for object instance initialization

2008-03-21 Thread Andy Lee
On Mar 21, 2008, at 4:07 PM, Stuart Malin wrote: 1) Do I just let -init dangle (so to speak)? and then if I ever forget that the object needs special initialization and instead call -init, the code will end up failing down the line somewhere where those initialization parameters matter...

best practices for object instance initialization

2008-03-21 Thread Stuart Malin
I have a class (a subclass of NSObject) that requires several parameters to be properly initialized. I have a -(id) initWithParams... method defined. I can't have -init invoke -initWithParams (as a designated initializer) because the object instance wouldn't be set up properly. I am wonderi