From: Sven C. K. <sc...@sn...> - 2001-08-19 22:07:03
|
Hi, I am looking for best practices to debug retain cycles. So far, I tried to track them down by reading source, which can be very frustrating when there is a lot of source code; another try was to read lF's internal data structures (in a category of e.g. NSAutoreleasePool), and to search those objects that are part of the cycle--unfortunately, it turned out that lF does not know from where objects were retained (correct me if I am wrong). My next idea would be to somehow wrap NSObject's retain (either on the source code or on the linker level), and to log the information I need. But before I do this, I'd just like to know whether there are better ways. Thanks in advance, Sven Koehler |