Hi there! I’d be most grateful if someone can clarify the following for me.
From what I understand, if a method is called that is the method that will be used. However, if this method is overridden, the overridden method is the one that will be called and not the original method. Given this, I’m mystified by the following code on page 118 of the Objective-C Programming book:
[quote]- (void) dealloc
NSLog(@“deallocating %@”, self);
Here we are obviously overriding dealloc but what I fail to see is how we are actually deallocating. All I see is a message being sent to the log. Surely, from the above code we are not deallocating, are we?
Many thanks in advance!