• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: retain, release, autorelease (was Checkboxes and NSBox titles)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.)


References: 
 >Re: retain, release, autorelease (was Checkboxes and NSBox titles) (From: jgo <email@hidden>)

  • Prev by Date: Re: Apple Events in Cocoa
  • Next by Date: NSUnixExpert
  • Previous by thread: Re: retain, release, autorelease (was Checkboxes and NSBox titles)
  • Next by thread: Re: retain, release, autorelease (was Checkboxes and NSBox titles)
  • Index(es):
    • Date
    • Thread