Possible Duplicate:
In Objective-C why should I check if self = [super init] is not nil?
I often see this "if (self = [super init])" construct and I wonder why it's done.
- (id) init {
  if (self = [super init]) {
    // how could self = [super init]; ever fail?
  }
  return self;
}
 
     
     
     
    