• 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: self = [super init], nil?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: self = [super init], nil?


  • Subject: Re: self = [super init], nil?
  • From: Henry McGilton <email@hidden>
  • Date: Mon, 10 May 2010 13:18:23 -0700

On May 9, 2010, at 7:56 PM, Scott Anguish wrote:

> This has been, or is being updated.
>
> The suggested pattern is now
>
> - (id)init
> {
>  self = [super init];
>  if (self)
>  {
>
>  }
>  return self;
> }
>
> All our documentation has been updated to reflect this (even if it hasn’t necessarily made it out to the users yet)


Hi Scott.  Is there any rationale for the change?  Or just Evolution In Action?

By the way, I concur with Thomas Davie: treating a pointer as a Boolean makes me nervous.

    Cheers,
        . . . . . . . . .    Henry

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: self = [super init], nil?
      • From: Fritz Anderson <email@hidden>
    • Re: self = [super init], nil?
      • From: David Duncan <email@hidden>
References: 
 >self = [super init], nil? (From: "Patrick M. Rutkowski" <email@hidden>)
 >Re: self = [super init], nil? (From: jeremy <email@hidden>)
 >Re: self = [super init], nil? (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: iPad UIViewController craziness
  • Next by Date: Re: self = [super init], nil?
  • Previous by thread: Re: self = [super init], nil?
  • Next by thread: Re: self = [super init], nil?
  • Index(es):
    • Date
    • Thread