I'd also hasten to remind that collections retain their objects, but
if those objects are mutable, like NSMutableString, than anybody that
holds a ref to them can change them at any time, so in some cases you
do want to make deep or immutable copies of these objects, depending
on context.
All of the collection classes -retain and -release objects that are
added to them, so you can release them in your code and as long as you
are retaining or otherwise holding onto the collection itself, the
collection will keep a strong ref to the objects it holds.
http://developer.apple.com
I'm wondering how NSMutableArray and NSMutableDictionary handle
objects if you add and object to them. I'm working on an iphone where
memory management is important and kinda iffy how these objects work.
Say if you allocate a temp object and add it to an NSMutableArray and
then release it a