• 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] debate.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: self = [super init] debate.


  • Subject: Re: self = [super init] debate.
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 10 Feb 2008 18:05:18 -0800


On 10 Feb '08, at 5:32 PM, Quincey Morris wrote:

-- Someone did an automated check of every Cocoa class in Tiger (maybe it was every subclass of NSObject, I don't remember exactly now) and counted the number of classes for which the receiver of [super init] was different from the returned value. The answer was 0.

IIRC, one or more of the NSURLxxx base classes does this — it might be NSURLProtocol — but I no longer have access to the source code so I can't look it up...


It would be hard to do an automated check for this, because so many classes have initializers other than plain -init.

—Jens_______________________________________________

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


References: 
 >self = [super init] debate. (From: Scott Andrew <email@hidden>)
 >Re: self = [super init] debate. (From: Quincey Morris <email@hidden>)
 >Re: self = [super init] debate. (From: Ricky Sharp <email@hidden>)
 >Re: self = [super init] debate. (From: Jens Alfke <email@hidden>)
 >Re: self = [super init] debate. (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: self = [super init] debate.
  • Next by Date: Re: self = [super init] debate.
  • Previous by thread: Re: self = [super init] debate.
  • Next by thread: Re: self = [super init] debate.
  • Index(es):
    • Date
    • Thread