I am trying to release an object but the retain count doesn't change after the release:
The output to the console is as follows:
Why wouldn't the release lower the retain count to 0??
myObject is a NSMutableArray with other objects added to it using the addObject method.
Thanks
Code:
NSLog(@"removeTableViewScreen object retainCount1 [%d]", [myObject retainCount]);
[myObject release];
NSLog(@"removeTableViewScreen object retainCount2 [%d]", [myObject retainCount]);
The output to the console is as follows:
Code:
3/3/09 5:23:07 PM removeTableViewScreen myObject retainCount1 [1]
3/3/09 5:23:07 PM removeTableViewScreen myObject retainCount2 [1]
Why wouldn't the release lower the retain count to 0??
myObject is a NSMutableArray with other objects added to it using the addObject method.
Thanks