Re: Memory Management
Re: Memory Management
- Subject: Re: Memory Management
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 28 Jul 2003 21:42:10 -0400
on 03-07-28 2:44 PM, Marcel Weiher at email@hidden wrote:
>
On Monday, Jul 28, 2003, at 01:20 Europe/London, Martin Hdcker wrote:
>
>
>> Question: Is there a preferred method? And does one method cause
>
>> problems is used?
>
>
>
> Yes, their is a preferred method:
>
>
This is correct.
>
>
> --- snip ---
>
> - (NSString *)name
>
> {
>
> return [[_name retain] autorelease];
>
> }
>
>
This is not. Although there has been some championing of this method
>
by well-placed individuals, their preference has not met with an
>
overwhelmingly positive response, to say the least. IMNSHO, their
>
case, although appealing at first, has been thoroughly debunked and is
>
not widely supported by the Cocoa community any longer. Of course, you
>
may disagree with this view, but at the very least the statement that
>
this is the preferred method is highly controversial.
Marcel and I were involved in a long correspondence about this technique
with one of those "well-placed individuals" some time ago. Marcel has made a
good effort to "thoroughly debunk" it (I hope his very interesting effort
will be published before too long; I know it has been submitted), but I will
suggest he might not be the most disinterested person to assess his
debunking success. In a very small way, this seems to have become something
of a religious issue.
As to whether it is "not widely supported by the Cocoa community any
longer," I would say it has _never_ been widely supported, mostly because
very few people have noticed the issue. Personally, I've been using it
myself for a long time, and it hasn't caused me any problems -- though that
is certainly faint praise. I think it is fair to say that this is the
"preferred method" at Apple, given the identity of the "well-placed
individual" of whom we speak, but I'm sure it's not currently the preferred
method outside of Apple because of the fact that very few people seem to
have noticed the issue.
That's my typically long-winded way of saying, you should read Marcel's and
partner's article (not yet published) and make your own judgment about it.
And watch Ali Ozer's well-placed ADC-TV presentation at the 2002 WWDC to
understand what it's all about and where he's coming from.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.