• 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: Sherm Pendley <email@hidden>
  • Date: Fri, 7 Jul 2006 10:24:19 -0400

On Jul 7, 2006, at 8:30 AM, Jim Correia wrote:

On Jul 7, 2006, at 4:52 AM, Rob Ross wrote:

Is is mandatory that Objective-C class instances have their designated initializer called only once? Can you design an initializer so that it can be called again to re-initialize the instance back to its initial state, or is that considered bad form?

-init<XXX> should not be sent to an already initialized object.

Of course, there's no reason you couldn't create a -reset method that would reset instance variables back to the state they were in when the object was first created.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
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: 
 >question about -init methods (From: Rob Ross <email@hidden>)
 >Re: question about -init methods (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Newbie Q : writing into a text view programmatically
  • Next by Date: Re: where have all the IVARS gone? (long time passing...)
  • Previous by thread: Re: question about -init methods
  • Next by thread: RE: question about -init methods
  • Index(es):
    • Date
    • Thread