Re: Best practice question
Re: Best practice question
- Subject: Re: Best practice question
- From: Chris Suter <email@hidden>
- Date: Sat, 28 Oct 2006 17:34:13 +1000
I think that's broken if the super class happens to change self to
another object, which whilst rare, is possible I believe.
- Chris
On 28/10/2006, at 4:59 PM, Diederik Hoogenboom wrote:
I always felt a bit awkward to reassign self so I use the following:
- (id)init
{
if (self != [super init])
return nil;
// do stuff
return self;
}
_______________________________________________
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