@@ -207,11 +207,11 @@ return method_get_imp(class_get_instance_method(self, selector)); #endif } + (IMP)setImplementation: (IMP)newimp - forMethod: (SEL)selector + forInstanceMethod: (SEL)selector { #ifdef OF_APPLE_RUNTIME Method method; if ((method = class_getInstanceMethod(self, selector)) == NULL) @@ -241,12 +241,12 @@ return oldimp; #endif } -+ (IMP)replaceMethod: (SEL)selector - withMethodFromClass: (Class)class; ++ (IMP)replaceInstanceMethod: (SEL)selector + withInstanceMethodFromClass: (Class)class; { IMP newimp; #ifdef OF_APPLE_RUNTIME newimp = class_getMethodImplementation(class, selector); @@ -253,11 +253,11 @@ #else newimp = method_get_imp(class_get_instance_method(class, selector)); #endif return [self setImplementation: newimp - forMethod: selector]; + forInstanceMethod: selector]; } - init { return self;