Changeset 216
- Timestamp:
- 05/01/06 09:11:28 (19 years ago)
- Location:
- trunk/ICeCoffEE
- Files:
-
- 9 added
- 1 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICeCoffEE/ICeCoffEE/APEMain.m
r183 r216 16 16 #import <ApplicationEnhancer/APETools.h> 17 17 #import <objc/objc-runtime.h> 18 #import "SmartCrashReportsAPI.h" 18 19 #import "ICeCoffEE.h" 19 20 #import "ICeCoffEETextEdit.h" … … 67 68 CFBundleRef ICCF_bundle; 68 69 69 // With APE 1.3, if we're in the exclude list, APEBundleMainEarlyLoad doesn't get invoked; don't need to use APETools. But we need to do our own management to avoid loading in non-GUI appl lications.70 // With APE 1.3, if we're in the exclude list, APEBundleMainEarlyLoad doesn't get invoked; don't need to use APETools. But we need to do our own management to avoid loading in non-GUI applications. 70 71 Boolean ICCF_shouldLoad; 71 72 72 73 void APEBundleMainEarlyLoad(CFBundleRef inBundle, CFStringRef inAPEToolsApplicationID) 73 74 { 75 OSStatus err; 76 77 err = UnsanitySCR_RegisterMatchSpecifier(kICBundleIdentifier, CFSTR("Nicholas Riley"), 78 NULL, CFSTR("SCR-5E5C696784"), NULL); 79 if (err != noErr) { 80 apeprintf("ICeCoffEE APE: Can't register with Smart Crash Reports (error %ld)\n", err); 81 } 82 74 83 ICCF_MigratePrefs(); 75 84 … … 83 92 84 93 CPSProcessSerNum psn; 85 OSStatuserr = CPSGetCurrentProcess(&psn);94 err = CPSGetCurrentProcess(&psn); 86 95 if (err != noErr) { 87 96 #if ICCF_DEBUG … … 92 101 #endif 93 102 } 94 103 95 104 CPSProcessInfoRec info; 96 105 err = CPSGetProcessInfo(&psn, &info, NULL, 0, NULL, NULL, 0); … … 128 137 if (ICCF_CFBundleIDMatches(bundleID, CFSTR("com.apple.xcode"))) { 129 138 ICCF_PatchMethod("PBXTextView", "ICeCoffEEMenuOnly", "ICeCoffEEMenuSuper", "menuForEvent:"); 130 ICapeprintf("ICeCoffEE APE: loaded in PBXTextView for PB!\n");139 ICapeprintf("ICeCoffEE APE: loaded in PBXTextView for Xcode\n"); 131 140 shouldLoadInNSTextView = NO; 132 141 } else if (ICCF_CFBundleIDMatches(bundleID, CFSTR("com.apple.terminal"))) { … … 137 146 ICCF_PatchMethod("TermSubview", "ICeCoffEETerminal", "ICECoffEETermSubviewSuper", "mouseUp:") && 138 147 ICCF_PatchMethod("TermSubview", "ICeCoffEETerminal", "ICECoffEETermSubviewSuper", "draggingEntered:") && 139 ICCF_PatchMethod("TermSubview", "ICeCoffEETerminal", "ICECoffEETermSubviewSuper", "_optionClickEvent:::") ,140 ICapeprintf("ICeCoffEE APE: loaded in TermSubview for Terminal !\n");141 } else if (ICCF_CFBundleIDMatches(bundleID, CFSTR("org.mozilla. navigator"))) {148 ICCF_PatchMethod("TermSubview", "ICeCoffEETerminal", "ICECoffEETermSubviewSuper", "_optionClickEvent:::"); 149 ICapeprintf("ICeCoffEE APE: loaded in TermSubview for Terminal\n"); 150 } else if (ICCF_CFBundleIDMatches(bundleID, CFSTR("org.mozilla.camino"))) { 142 151 ICCF_PatchMethod("ChildView", "ICeCoffEEMenuOnly", "ICeCoffEEMenuSuper", "menuForEvent:"); 143 152 ICapeprintf("ICeCoffEE APE: loaded in ChildView for Camino\n"); … … 147 156 ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseUp:") && 148 157 ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseDown:") && 149 ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "menuForEvent:") ,158 ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "menuForEvent:"); 150 159 ICapeprintf("ICeCoffEE APE: loaded in WebHTMLView for WebKit/Safari\n"); 151 160 152 161 if (shouldLoadInNSTextView) { 153 162 ICCF_PatchMethod("NSTextView", "ICeCoffEE", "ICeCoffEESuper", "mouseDown:") && 154 ICCF_PatchMethod("NSTextView", "ICeCoffEE", "ICeCoffEESuper", "menuForEvent:") ,163 ICCF_PatchMethod("NSTextView", "ICeCoffEE", "ICeCoffEESuper", "menuForEvent:"); 155 164 ICapeprintf("ICeCoffEE APE: loaded generic NSTextView support\n"); 156 165 } -
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEShared.h
r183 r216 19 19 #define ICapeprintf apeprintf 20 20 #else 21 #define ICLog (void)22 #define ICapeprintf (void)21 #define ICLog(args...) ; 22 #define ICapeprintf(args...) ; 23 23 #endif 24 24 -
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEETerminal.m
r183 r216 56 56 // misc. other stuff 57 57 - (void)_optionClickEvent:(NSEvent *)event:(unsigned int)row:(unsigned short)column {} 58 - (void)setNeedsDisplay; {} 58 - (void)setNeedsDisplay {} 59 // NSView methods (needed to avoid crash in super invocation) 60 - (void)mouseUp:(NSEvent *)e { [super mouseUp: e]; } 61 - (void)mouseDown:(NSEvent *)e { [super mouseDown: e]; } 59 62 @end 60 63 -
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEWebKit.m
r183 r216 13 13 @interface WebCoreBridge : NSObject 14 14 15 - (NSDictionary *)elementAtPoint:(NSPoint)point;16 15 - (NSString *)selectedString; 17 16 - (NSRect)selectionRect; … … 28 27 29 28 - (NSRange)selectedRange; 29 30 - (NSDictionary *)elementAtPoint:(NSPoint)point; 30 31 31 32 @end … … 69 70 70 71 NS_DURING 72 NSPoint viewClickPt = [self convertPoint: downPt fromView: nil]; 73 NSDictionary *elementDict = [(WebHTMLView *)self elementAtPoint: viewClickPt]; 71 74 WebCoreBridge *bridge = [(WebHTMLView *)self _bridge]; 72 NSPoint viewClickPt = [self convertPoint: downPt fromView: nil];73 NSDictionary *elementDict = [bridge elementAtPoint: viewClickPt];74 75 ICLog(@"elementDict: %@", elementDict); 75 76 NSAssert([elementDict count] != 0, @"Internal error: Got empty element dictionary from WebHTMLView"); -
trunk/ICeCoffEE/ICeCoffEE/Info-APE Module.plist
r185 r216 19 19 <string></string> 20 20 <key>CFBundleIconFile</key> 21 <string> </string>21 <string>APE</string> 22 22 <key>CFBundleIdentifier</key> 23 23 <string>net.sabi.ICeCoffEE</string> … … 33 33 <string>ICCF</string> 34 34 <key>CFBundleVersion</key> 35 <string>1.4. 2</string>35 <string>1.4.3d1</string> 36 36 </dict> 37 37 </plist> -
trunk/ICeCoffEE/ICeCoffEE/Info-APEManagerPrefPane.plist
r185 r216 24 24 <string>????</string> 25 25 <key>CFBundleVersion</key> 26 <string>1.4. 2</string>26 <string>1.4.3d1</string> 27 27 <key>NSMainNibFile</key> 28 28 <string>APE Manager plugin</string> -
trunk/ICeCoffEE/ICeCoffEE/VERSION
r185 r216 1 1.4. 21 1.4.3d1 -
trunk/ICeCoffEE/package-ICeCoffEE.sh
r184 r216 14 14 sudo rm -rf build/ && \ 15 15 rm -rf build/ && \ 16 xcodebuild -target "ICeCoffEE Installer" - buildstyleDeployment "DSTROOT=$DSTROOT" DEPLOYMENT_LOCATION=YES install && \16 xcodebuild -target "ICeCoffEE Installer" -configuration Deployment "DSTROOT=$DSTROOT" DEPLOYMENT_LOCATION=YES install && \ 17 17 mkdir "$DSTROOT" && \ 18 mv "build/ $PRODUCT Installer.app" "$DSTROOT/$PRODUCT $VERSION Installer.app" && \18 mv "build/Deployment/$PRODUCT Installer.app" "$DSTROOT/$PRODUCT $VERSION Installer.app" && \ 19 19 sudo rm -rf build/ && \ 20 find "$DSTROOT" -name ".svn" -type d -exec sudo /bin/rm -rf "{}" \; ; \ 20 find "$DSTROOT" -name ".svn" -type d -exec sudo /bin/rm -rf "{}" \; 21 # uncomment to include localizations 22 find "$DSTROOT" -name \*.lproj -type d -and -not -name English.lproj -exec sudo rm -rf "{}" \; 21 23 cd "$PACKAGEDIR" && \ 22 24 rm -f "$DMG" && \
Note:
See TracChangeset
for help on using the changeset viewer.