Re: Proper retain/release etiquette (Daryn)
Re: Proper retain/release etiquette (Daryn)
- Subject: Re: Proper retain/release etiquette (Daryn)
- From: Gregory Weston <email@hidden>
- Date: Thu, 25 Jul 2002 06:23:02 -0700 (PDT)
Daryn <email@hidden> wrote
>
>>> 9. One should not attempt to re-use objects by re-initing them.
>
>
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?
I believe the technical term is "it's oogy." Basically, you have no control over what's going on in the superclass initialization methods that are being invoked unless you refrain from sending those messages in the first place.
G
_______________________________________________
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.