#include <qglobal.h>
#import <objc/objc-class.h>
Go to the source code of this file.
◆ qt_cocoa_change_back_implementation()
void qt_cocoa_change_back_implementation |
( |
Class |
baseClass, |
|
|
SEL |
originalSel, |
|
|
SEL |
backupSel |
|
) |
| |
Definition at line 111 of file qcocoaintrospection_mac.mm.
Referenced by macStopInterceptNSPanelCtor(), and macStopInterceptWindowTitle().
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));
static const MacVersion MacintoshVersion
the version of the Macintosh operating system on which the application is run (Mac only)...
◆ qt_cocoa_change_implementation()
void qt_cocoa_change_implementation |
( |
Class |
baseClass, |
|
|
SEL |
originalSel, |
|
|
Class |
proxyClass, |
|
|
SEL |
replacementSel = 0 , |
|
|
SEL |
backupSel = 0 |
|
) |
| |
Definition at line 80 of file qcocoaintrospection_mac.mm.
Referenced by macStartInterceptNSPanelCtor(), and macStartInterceptWindowTitle().
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));
static const MacVersion MacintoshVersion
the version of the Macintosh operating system on which the application is run (Mac only)...