I'm starting to use iOS5 and I've enabled ARC for my project. I have a class where on deallocation I save the state of that object.
-(void)dealloc {
[self save];
[super dealloc];
}
However, under ARC, [super dealloc]
is not allowed? I thought that it was considered a bug if you don't invoke the dealloc method on the super class in this situation?
So what is the appropriate way to dealloc objects now?