When I get a memory warning I am releasing a bunch of objects stored in an NSMutableArray.
[_children release];
I also need to recurse through objects at some point (potentially after a mem warning has happened), so I need to check if the objects are still around, which I do with comparison to nil- which isn't going to work because releasing the array doesn't nil anything.
I can't loop through the array removing objects 1-by-1 and setting to nil because I'm not allowed to modify an array during iteration.
It feels like I'm missing something obvious. I just want to release + nil some values in an array.