discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bogus retain via NSEnumerator


From: Michael Ash
Subject: Re: bogus retain via NSEnumerator
Date: Sun, 2 May 2004 08:30:43 -0400

On Sun, 2 May 2004, Uli Kusterer wrote:

> In article <address@hidden>,
>  Michael Ash <address@hidden> wrote:
>
> > Any object you get back from a method that's not "alloc", "copy", or
> > "retain" (plus the variants like mutableCopy) is autoreleased.
>
> Danger, Will Robinson!
>
>  This is a rough guideline for use, but not quite correct.
>
>  Actually, the only guarantee you get is that you're not responsibe for
> releasing it if there's no "alloc", "copy", "retain", "load" or "new" in
> the name (load is a special case, but worth mentioning if you're
> manually loading NIBs).
[snip rest of explanation]

You are, of course, completely right. Thanks for the clarification.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]