• 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
meaning of if (self = [super init])
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

meaning of if (self = [super init])


  • Subject: meaning of if (self = [super init])
  • From: Cyprien <email@hidden>
  • Date: Wed, 25 Jun 2003 16:10:45 +0200

What's the meaning of this code line ?

if (self = [super init])

does self return a Boolean, whatever the receiver is ?

and I suppose that this has nothing to do with

if (self == [super init])

has it ? This is a comparison, and the first one was "initialise self and test the returned value" isn't it ?

I'm not really sure about it.



Cyprien
_______________________________________________
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.

  • Follow-Ups:
    • Re: meaning of if (self = [super init])
      • From: Ben Dougall <email@hidden>
    • Re: meaning of if (self = [super init])
      • From: Florent Pillet <email@hidden>
    • Re: meaning of if (self = [super init])
      • From: Tito Ciuro <email@hidden>
    • Re: meaning of if (self = [super init])
      • From: Drew McCormack <email@hidden>
  • Prev by Date: Re: Online Documentation
  • Next by Date: Possibly OT: Raw mouse data hook for switching of left/right mouse button
  • Previous by thread: Re: Properly handling mouseEntered: events
  • Next by thread: Re: meaning of if (self = [super init])
  • Index(es):
    • Date
    • Thread