I have an array NSMutableArray
with happy objects. These objects viciously turn on (leak) me whenever I try to clear the array of all the objects and repopulate it.
Are you referring to the objects in the array leaking?
How are you adding objects to the array? The array will retain them, so you need to autorelease or release them after you've added them to the array. Otherwise after the array is released the objects will still be retained (leaked).
MyEvent *event = [[MyEvent alloc] initWithEventInfo:info];
[self.eventList addObject:event];
[event release];
MyEvent *otherEvent = [[[MyEvent alloc] initWithEventInfo:otherInfo] autorelease];
[self.eventList addObject:otherEvent];