• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: meaning of if (self = [super init])
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >meaning of if (self = [super init]) (From: Cyprien <email@hidden>)

  • Prev by Date: RE: nsmatrix question
  • Next by Date: Web Kit creating hundreds of Java threads
  • Previous by thread: meaning of if (self = [super init])
  • Next by thread: Re: meaning of if (self = [super init])
  • Index(es):
    • Date
    • Thread