76 #include <private/qcocoaintrospection_p.h> 82 #ifndef QT_MAC_USE_COCOA 86 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 97 replacementSel = originalSel;
99 Method originalMethod = class_getInstanceMethod(baseClass, originalSel);
100 Method replacementMethod = class_getInstanceMethod(proxyClass, replacementSel);
101 IMP originalImp = method_setImplementation(originalMethod, method_getImplementation(replacementMethod));
104 Method backupMethod = class_getInstanceMethod(proxyClass, backupSel);
105 class_addMethod(baseClass, backupSel, originalImp, method_getTypeEncoding(backupMethod));
113 #ifndef QT_MAC_USE_COCOA 117 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 118 Method originalMethod = class_getInstanceMethod(baseClass, originalSel);
119 Method backupMethodInBaseClass = class_getInstanceMethod(baseClass, backupSel);
120 method_setImplementation(originalMethod, method_getImplementation(backupMethodInBaseClass));
#define QT_END_NAMESPACE
This macro expands to.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void qt_cocoa_change_implementation(Class baseClass, SEL originalSel, Class proxyClass, SEL replacementSel, SEL backupSel)
void qt_cocoa_change_back_implementation(Class baseClass, SEL originalSel, SEL backupSel)
static const MacVersion MacintoshVersion
the version of the Macintosh operating system on which the application is run (Mac only)...