Sometimes I need to find out if an object will actually be released. Of course, I could use the Tools, but it takes a lot of time, and I have to search for millions of objects, so I used this:
-(void)release { NSLog(@"I'm released"); [super release]; }
But the problem is what is safe to do ? Can I get any problems when I override -(void)release . Also, is it really void ? And what if I create an application for distribution, but in case of an accident you leave it? Or is it just safe? Thanks
debugging memory-leaks objective-c cocoa-touch release
user142019
source share