As I know, in my overloaded method (in category) I may call [super method]
to pass it to original class.
In my case I don't have header file of class, so I write:
@interface OriginalClass : NSObject
@end
@interface OriginalClass (overloadMethod)
-(void) method;
@end
@implementation OriginalClass (overloadMethod)
-(void) method
{
// some my code
[super method]; // here is warning that "NSObject may not respond to '-method'
}
@end
So is it possible to pass method
to OriginalClass
correctly without having its header file? Maybe it would be better to look at method_setImplementation
?