Is it OK to write code after [super dealloc]? (Objective-C)
- by Richard J. Ross III
I have a situation in my code, where I cannot clean up my classes objects without first calling [super dealloc]. It is something like this:
// Baseclass.m
@implmentation Baseclass
...
-(void) dealloc
{
[self _removeAllData];
[aVariableThatBelongsToMe release];
[anotherVariableThatBelongsToMe release];
[super dealloc];
}
...
…