When to use -retainCount?

You should never use -retainCount, because it never tells you anything useful. The implementation of the Foundation and AppKit/UIKit frameworks is opaque; you don’t know what’s being retained, why it’s being retained, who’s retaining it, when it was retained, and so on. For example: You’d think that [NSNumber numberWithInt:1] would have a retainCount of 1. … Read more