• 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: question about -init methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about -init methods


  • Subject: Re: question about -init methods
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 7 Jul 2006 12:35:52 -0700

On Jul 7, 2006, at 12:22 PM, Rob Ross wrote:

(Also, I am used to having my own private init() methods in Java classes, called from my constructor, to organize my object's initialization code. I have to find a new name for those methods now!! What do other people call their helper methods that are called from the -initXXX methods that help the initializer perform its initialization code?)

The designated initializer. If a class has several -init* methods, one of them needs to be the designated initializer which all of the others -- and all subclasses -- must invoke either directly or indirectly.


  -- Chris



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: question about -init methods (From: Matt Neuburg <email@hidden>)
 >Re: question about -init methods (From: Rob Ross <email@hidden>)

  • Prev by Date: Re: question about -init methods
  • Next by Date: Re: more on two-way bindings and one-way bindings
  • Previous by thread: Re: question about -init methods
  • Next by thread: RE: question about -init methods
  • Index(es):
    • Date
    • Thread