On Jun 1, 2009, at 4:59 AM, Graham Cox wrote:
On 01/06/2009, at 9:52 PM, Bright wrote:
When should use the "[super dealloc];"? Could anyone list all of
case.
Whenever you have overridden -dealloc. Simple as that.
Pretty much. If you override +alloc then you may or may not want to
call [s
You need to call [super dealloc] when you want to call the dealloc
method of the super of your class. (logical, isn't?).
Every class has default the next dealloc method:
-(void)dealloc {
[super dealloc];
}
But, when you want to release classes you have initialised in your
object, yo
On 01/06/2009, at 9:52 PM, Bright wrote:
When should use the "[super dealloc];"? Could anyone list all of
case.
Whenever you have overridden -dealloc. Simple as that.
When do you override dealloc? When there are instance member variables
(ivars) that must be released when your object is
Hi ,all
In Cocoa, if there is "[super init];", there will be "[super dealloc];"
correspondently at the end of this class.
But I find that sometimes if there is not "[super init];", there will be
"[super dealloc];" correspondently too.
I puzzled. When should use the "[super dealloc];"? Could anyo