NSArray saves objects when they are added and frees them when they are deleted, or the array is freed. Keep this in mind, based on this concept of โownershipโ that preserves / frees memory management. Same thing with the object that owns the array, if it also saved the objects in the array, you will need to send them another release message in your dealloc implementation. If not, and if no other objects have saved them, they will be freed after the array frees them.
Marc Charbonneau May 20 '09 at 2:43 a.m. 2009-05-20 02:43
source share