Lines Matching refs:original
151 static void swizzleAllMethods(Class imposter, Class original)
157 Method* originalMethods = class_copyMethodList(original, &originalMethodCount);
162 // Attempt to add the method to the original class. If it fails, the method already exists and we should
164 if (class_addMethod(original, imposterMethodName, method_getImplementation(imposterMethods[i]), method_getTypeEncoding(imposterMethods[i])))
174 // If class_addMethod failed above then the method must exist on the original class.
184 static void poseAsClass(const char* imposter, const char* original)
187 Class originalClass = objc_getClass(original);