Re: meaning of if (self = [super init])
Re: meaning of if (self = [super init])
- Subject: Re: meaning of if (self = [super init])
- From: Drew McCormack <email@hidden>
- Date: Wed, 25 Jun 2003 16:31:47 +0200
On Wednesday, June 25, 2003, at 04:10 pm, Cyprien wrote:
What's the meaning of this code line ?
if (self = [super init])
This assigns the return value of [super init] to self. Then it tests
the new value of self to see if it is nil (0) or not. If everything
worked, self will not be zero, so you can continue to initialize.
Drew
========================================
Dr. Drew McCormack (Kmr. R153)
Afd. Theoretische Chemie
Faculteit Exacte Wetenschappen
Vrije Universiteit Amsterdam
De Boelelaan 1083
1081 HV Amsterdam
The Netherlands
Email email@hidden
Telephone +31 20 44 47623
Mobile +31 6 483 21307
Fax +31 20 44 47629
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.