Hi,
just a quick question: When using garbage collection, does calling the insertObject:atIndex: method copy the object to be inserted?
So, after having inserted my object into the array, can I do:
so that the garbage collection can deallocate it?
Or will the NSMutableArray just keep a reference to my object, thus meaning I cannot set myObject to nil?
just a quick question: When using garbage collection, does calling the insertObject:atIndex: method copy the object to be inserted?
So, after having inserted my object into the array, can I do:
Code:
myObject = nil
Or will the NSMutableArray just keep a reference to my object, thus meaning I cannot set myObject to nil?