• 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: j o a r <email@hidden>
  • Date: Wed, 2 Nov 2005 17:25:56 +0100


On 2 nov 2005, at 16.59, email@hidden wrote:

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

It's not allowed in Cocoa. Read this from an authoritative source:

<http://www.cocoabuilder.com/archive/message/cocoa/2003/10/16/1773>

You also need to consider that an init method can return a *new* object.

I have also filed a case in Radar about updating the documentation to make this more clear.

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >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>)
 >Re: Is it a bad idea to invoke "init..." over and over on the same object? (From: 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: NSOutlineView: expand all items. How?
  • 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