Re: self = [super init] debate.
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