how to check an object have been release from the memory?
i know a object have to be release manually when we use alloc|copy|retain to create that object. if use the instance class method(NSString stringwithformat:), the object will be release automactically by NSAutoRealeasePool,however, sometime there have some object used to release at the (void)dealloc function there,can anybody tell me
what is the different with [object release] instantly after alloc function,[object release] at (void)dealloc,and NSAutoReleasePool to release the object?
when is the (void)dealloc function being called and when is the NSAutoReleasePool release the memory, i know it is every loop cycle, how can i check it from code?
when i declared a variable at hearder and set the property as retain, i still can use the alloc function to that object but not cause to memory leak, but from this post seem like once declared a retain object at header, that is no longer can alloc the object because both will retain the object,can anybody tell me why i still can code like this without causing any memory leak?