Re: What classes have -init?
Re: What classes have -init?
- Subject: Re: What classes have -init?
- From: Graham Cox <email@hidden>
- Date: Fri, 12 Feb 2010 17:00:38 +1100
On 12/02/2010, at 4:52 PM, Quincey Morris wrote:
> since classes are allowed to have multiple designated initializers.
I don't think that's true. Surely by definition "THE designated initializer" is a single specific method.
The docs state:
"The designated initializer is the method in each class that guarantees inherited instance variables are initialized (by sending a message to super to perform an inherited method). It’s also the method that does most of the work, and the one that other initialization methods in the same class invoke. It’s a Cocoa convention that the designated initializer is always the method that allows the most freedom to determine the character of a new instance (usually this is the one with the most arguments, but not always)."
Lot's of use of 'the' in this paragraph, no mention of 'a' or 'one of the'.
Is there some other documentation that contradicts this?
--Graham
_______________________________________________
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