Re: retain, release, autorelease (was Checkboxes and NSBox titles)
Re: retain, release, autorelease (was Checkboxes and NSBox titles)
- Subject: Re: retain, release, autorelease (was Checkboxes and NSBox titles)
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 20 Jun 2001 16:48:55 -0700
On Wednesday, June 20, 2001, at 12:39 PM, jgo wrote:
Could someone provide a snippet that shows or words that explain
how it works with containers/collections.
Basically, when you add any object to a collection it gets a -retain
message, and when you remove it from the collection it gets a -release.
(Not an -autorelease!) If you destroy a collection, then all of its
contents get -released.
-jcr
begin
(If this message looks like it has an attachment, your mail reader is
brain-dead.)