How to track dealloc of an abstract object class (NSMutable...)
- by Thomas Tempelmann
I have a bug in my code caused by a premature freeing of a ObjC object. I seem not to be able to find it by just looking at my code.
There's usually a simple trick to track the dealloc to any class: Implement dealloc, and set a breakpoint. This even usually works with standard objects, by subclassing them and making sure I instantiate the subclass…