• 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: Okay, a stupid question about NSArrays...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Okay, a stupid question about NSArrays...


  • Subject: Re: Okay, a stupid question about NSArrays...
  • From: Andreas Monitzer <email@hidden>
  • Date: Thu, 19 Jul 2001 02:23:01 +0200

On Thursday, July 19, 2001, at 02:13 , Lloyd Sargent wrote:

When a NSArray is released, does that release the objects in the array as well? I would intuit that it does, but I can't find anything nailing this behaviour down. I really hate to ASSUME, but is my assumption that it releases all objects it has in it a correct one?

file:///System/Library/Frameworks/Foundation.framework/Versions/C/Resources/
English.lproj/Documentation/Reference/ObjC_classic/Classes/NSArray.html

says

In general, objects that you add to an array aren't copied; rather, each object receives a retain message before its id is added to the array. When an object is removed from an array, it's sent a release message.

andy
--
Description forthcoming.


References: 
 >Okay, a stupid question about NSArrays... (From: Lloyd Sargent <email@hidden>)

  • Prev by Date: Okay, a stupid question about NSArrays...
  • Next by Date: Re: Okay, a stupid question about NSArrays...
  • Previous by thread: Okay, a stupid question about NSArrays...
  • Next by thread: Re: Okay, a stupid question about NSArrays...
  • Index(es):
    • Date
    • Thread