• 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: What classes have -init?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: What classes have -init?
      • From: Kyle Sluder <email@hidden>
References: 
 >Re: What classes have -init? (From: Gordon Apple <email@hidden>)
 >Re: What classes have -init? (From: Graham Cox <email@hidden>)
 >Re: What classes have -init? (From: Charles Srstka <email@hidden>)
 >Re: What classes have -init? (From: Michael Ash <email@hidden>)
 >Re: What classes have -init? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: What classes have -init?
  • Next by Date: Re: What classes have -init?
  • Previous by thread: Re: What classes have -init?
  • Next by thread: Re: What classes have -init?
  • Index(es):
    • Date
    • Thread