Ignore:
Timestamp:
05/01/06 09:11:28 (18 years ago)
Author:
Nicholas Riley
Message:

VERSION: Starting with 1.4.3d1.

APE.icns: Generic APE icon (not sure whether we care).

SmartCrashReportsAPI.[ho]: SCR 1.1.

ICeCoffEEWebKit.m: -elementAtPoint: isn't in current
development WebKit; switch to the version in WebHTMLView.

Info-APE Module.plist: Update version to 1.4.3d1.

ICeCoffEE.xcodeproj: Xcode 2 version of project, required fixing
script which copies the APE bundle into the installer. We're still
building for 10.3.9 and later on PowerPC only for this release.

English.lproj/APEInfo.rtfd: Small clarifications, update release notes
and version information.

English.lproj/InfoPlist.strings: Update version to 1.4.3d1.

ICeCoffEEShared.h: Use varargs macros to finally fix the stupid
warnings when ICCF_DEBUG is 0.

ICeCoffEE APE.xcode: Removed.

ICeCoffEETerminal.m: Fixes crash on clicking disabled close/minimize
widgets in Open dialog (invalid super method call) by implementing
overridden methods in the faked superclass.

ape_install: APE 1.5.1.

Info-APEManagerPrefPane.plist: Update version number.

APEMain.m: Implement SCR. Fix a comment typo. Remove some useless
uses of the comma operator so the new warning-less ICapeprintf works.

package-ICeCoffEE.sh: Use new xcodebuild syntax and build layout.
Remove a useless use of the semicolon. Nuke localizations on
development builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/APEMain.m

    r183 r216  
    1616#import <ApplicationEnhancer/APETools.h>
    1717#import <objc/objc-runtime.h>
     18#import "SmartCrashReportsAPI.h"
    1819#import "ICeCoffEE.h"
    1920#import "ICeCoffEETextEdit.h"
     
    6768CFBundleRef ICCF_bundle;
    6869
    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 appllications.
     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.
    7071Boolean ICCF_shouldLoad;
    7172
    7273void APEBundleMainEarlyLoad(CFBundleRef inBundle, CFStringRef inAPEToolsApplicationID)
    7374{
     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   
    7483    ICCF_MigratePrefs();
    7584
     
    8392
    8493    CPSProcessSerNum psn;
    85     OSStatus err = CPSGetCurrentProcess(&psn);
     94    err = CPSGetCurrentProcess(&psn);
    8695    if (err != noErr) {
    8796#if ICCF_DEBUG
     
    92101#endif
    93102    }
    94    
     103
    95104    CPSProcessInfoRec info;
    96105    err = CPSGetProcessInfo(&psn, &info, NULL, 0, NULL, NULL, 0);
     
    128137        if (ICCF_CFBundleIDMatches(bundleID, CFSTR("com.apple.xcode"))) {
    129138            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");
    131140            shouldLoadInNSTextView = NO;
    132141        } else if (ICCF_CFBundleIDMatches(bundleID, CFSTR("com.apple.terminal"))) {
     
    137146            ICCF_PatchMethod("TermSubview", "ICeCoffEETerminal", "ICECoffEETermSubviewSuper", "mouseUp:") &&
    138147            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"))) {
    142151            ICCF_PatchMethod("ChildView", "ICeCoffEEMenuOnly", "ICeCoffEEMenuSuper", "menuForEvent:");
    143152            ICapeprintf("ICeCoffEE APE: loaded in ChildView for Camino\n");
     
    147156    ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseUp:") &&
    148157        ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "mouseDown:") &&
    149         ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "menuForEvent:"),
     158        ICCF_PatchMethod("WebHTMLView", "ICeCoffEEWebKit", "ICeCoffEEWebKitSuper", "menuForEvent:");
    150159        ICapeprintf("ICeCoffEE APE: loaded in WebHTMLView for WebKit/Safari\n");
    151160   
    152161    if (shouldLoadInNSTextView) {
    153162        ICCF_PatchMethod("NSTextView", "ICeCoffEE", "ICeCoffEESuper", "mouseDown:") &&
    154         ICCF_PatchMethod("NSTextView", "ICeCoffEE", "ICeCoffEESuper", "menuForEvent:") ,
     163        ICCF_PatchMethod("NSTextView", "ICeCoffEE", "ICeCoffEESuper", "menuForEvent:");
    155164        ICapeprintf("ICeCoffEE APE: loaded generic NSTextView support\n");
    156165    }
Note: See TracChangeset for help on using the changeset viewer.