• 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: Proper retain/release etiquette
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper retain/release etiquette


  • Subject: Re: Proper retain/release etiquette
  • From: Daryn <email@hidden>
  • Date: Wed, 24 Jul 2002 23:03:23 -0500

On Tuesday, July 23, 2002, at 08:59 AM, Gregory Weston wrote:
Roarke Lynch <email@hidden> wrote
On Monday, July 22, 2002, at 09:05 PM, Chris Anderson wrote:
9. One should not attempt to re-use objects by re-initing them.

no.

Your response is ambiguous, but the OP is correct.

I can understand how re-initing an object, in general, would be a terrible practice. What about in controlled situations where the scope of the reinited variable is limited? For example, might a loop benefit from reiniting a string object repeatedly to save on object creation/destruction overhead?

So is it a frowned upon practice, or are there technical issues?

Daryn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Proper retain/release etiquette
      • From: Roarke Lynch <email@hidden>
    • Re: Proper retain/release etiquette
      • From: Ondra Cada <email@hidden>
References: 
 >Re: Proper retain/release etiquette (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: (got it) lower-right origin on NSView?
  • Next by Date: Re: any constructor
  • Previous by thread: Re: Proper retain/release etiquette
  • Next by thread: Re: Proper retain/release etiquette
  • Index(es):
    • Date
    • Thread