For a while now I've been working on a piece of Cocoa software that I'm writing as part of my Master's thesis. I knew nothing about Cocoa before I started and I made some errors with memory leaks dealing with the copious amount off array insertion and deletion I do. Now I'm trying to fix those leaks, but it isn't the easiest thing to do as my code is pretty long and complicated and still not exactly an expert on reference count memory management. My question is this: Is there any way to determine what the reference count is for a particular object, or rather part of memory? It would make my debugging a lot easier. I searched around online to try to find a way and I couldn't find one. It sure seems like it should exist.... Thanks in advance.