• 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: Is it a bad idea to invoke "init..." over and over on the same object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it a bad idea to invoke "init..." over and over on the same object?


  • Subject: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • From: email@hidden
  • Date: Thu, 3 Nov 2005 02:59:57 +1100

Definitely not! Calling an init method more than once on any object is a
no-no.

Unless explicitly noted otherwise.

I've designed things in past to work perfectly well with multiple inits, in cases where there are very specific usage patterns that would favour this optimisation.

I've also seen others state explicitly that their classes support this, and even more examples abound in actual code (albeit undocumented).

That said, I can't think of any examples off hand in any of Apple's frameworks which support this.

Wade Tregaskis

    ICQ: 40056898
    AIM, Yahoo & Skype: wadetregaskis
    MSN: email@hidden
    iChat & email: email@hidden
    Jabber: email@hidden
    Google Talk: email@hidden

    http://homepage.mac.com/wadetregaskis/

-- Sed quis custodiet ipsos custodes?


_______________________________________________ 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
  • Follow-Ups:
    • Re: Is it a bad idea to invoke "init..." over and over on the same object?
      • From: j o a r <email@hidden>
References: 
 >Is it a bad idea to invoke "init..." over and over on the same object? (From: Andrei Tchijov <email@hidden>)
 >Re: Is it a bad idea to invoke "init..." over and over on the same object? (From: Jack Nutting <email@hidden>)

  • Prev by Date: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Next by Date: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Previous by thread: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Next by thread: Re: Is it a bad idea to invoke "init..." over and over on the same object?
  • Index(es):
    • Date
    • Thread