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