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: mmalcolm crawford <email@hidden>
- Date: Wed, 20 Jun 2001 18:43:15 -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.
"Cases which often cause confusion
Arrays and other collection classes
When an object is added to an array, dictionary, or set (etc), the
collection retains it. It will be sent a corresponding release message
when the collection is itself released. Thus if you want for example to
create an array of numbers, you might do either of the following..."
http://www.stepwise.com/Articles/Technical/2001-03-11.01.html
mmalc.