Changeset 106 for trunk/ICeCoffEE/ICeCoffEE/APEMain.m
- Timestamp:
- 03/08/03 03:15:01 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICeCoffEE/ICeCoffEE/APEMain.m
r89 r106 89 89 OSStatus err = CPSGetCurrentProcess(&psn); 90 90 if (err != noErr) { 91 #if ICCF_DEBUG 92 apeprintf("ICeCoffEE APE: Can't get process serial number for current process (error %ld); still loading because of ICCF_DEBUG\n", err); 93 #else 91 94 apeprintf("ICeCoffEE APE: Can't get process serial number for current process (error %ld); not loading in this application\n", err); 92 95 return; 96 #endif 93 97 } 94 98 … … 96 100 err = CPSGetProcessInfo(&psn, &info, NULL, 0, NULL, NULL, 0); 97 101 if (err != noErr) { 102 #if ICCF_DEBUG 103 apeprintf("ICeCoffEE APE: Can't get process information (error %ld); still loading because of ICCF_DEBUG\n", err); 104 #else 98 105 apeprintf("ICeCoffEE APE: Can't get process information (error %ld); not loading in this application\n", err); 99 106 return; 107 #endif 100 108 } 101 109 ICapeprintf("ICeCoffEE APE: got process attributes = 0x%lx\n", info.Attributes); … … 124 132 ICapeprintf("ICeCoffEE APE: loaded in TermSubview for Terminal!\n"); 125 133 } else if (CFStringCompare(bundleID, CFSTR("com.apple.safari"), kCFCompareCaseInsensitive) == kCFCompareEqualTo) { 134 #if ICCF_WEBKIT 126 135 ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseUp:") && 127 136 ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseDown:") && 128 137 ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "menuForEvent:") , 129 138 ICapeprintf("ICeCoffEE APE: loaded in WebHTMLView for Safari!\n"); 139 #endif 130 140 } 131 141 }
Note:
See TracChangeset
for help on using the changeset viewer.