Is it possible to access the super class method of an objects super class (or grandfather)?
For instance:
GrandFatherObject : NSObject
SuperObject : GrandFatherObject
SelfObject : SuperObject
From SelfObject:
- (void)overriddenMethod
{
// For Self
someCode();
// For Parent
[super overriddenMethod];
// For GrandParent
???
}
I only have access to SelfObject (Can’t modify SuperObject or GrandFatherObject)
Yes, you can do it, but it takes a bit more code than just invoking
super.More or less, it’d be something like this: