Ignore:
Timestamp:
02/13/04 21:01:06 (20 years ago)
Author:
Nicholas Riley
Message:

Integrates SCPatch and mach_inject; unfinished, buggy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/F-Script Anywhere/Source/FSAController.m

    r19 r153  
    5252    if (!alreadyInstalled && ((mainMenu = [NSApp mainMenu]) != nil)) {
    5353        NSMenu *insertIntoMenu = nil;
    54         NSMenuItem *item;
     54        id<NSMenuItem> item;
    5555        unsigned insertLoc = NSNotFound;
    56         NSBundle *bundle = [NSBundle bundleForClass:self];
     56        NSBundle *bundle = [NSBundle bundleForClass: self];
    5757        NSMenu * beforeSubmenu = [NSApp windowsMenu];
    5858        // Succeed or fail, we do not try again.
     
    106106            [fsaMenu addItemWithTitle: NSLocalizedStringFromTableInBundle(@"Associate With Interface", @"FSA", bundle, @"Title of Associate with Interface menu item") action: @selector(FSA_associateWithInterface:) keyEquivalent: @""];
    107107            [fsaMenu addItem: [NSMenuItem separatorItem]];
    108             item = [fsaMenu addItemWithTitle: NSLocalizedStringFromTableInBundle(@"About F-Script AnywhereÉ", @"FSA", bundle, @"Title of Info Panel menu item") action:@selector(showInfo:) keyEquivalent: @""];
     108            item = [fsaMenu addItemWithTitle: NSLocalizedStringFromTableInBundle(@"About F-Script Anywhere...", @"FSA", bundle, @"Title of Info Panel menu item") action:@selector(showInfo:) keyEquivalent: @""];
    109109            [item setTarget: self];
    110110            [[FSAWindowManager sharedManager] setWindowMenu: fsaMenu];
     
    137137}
    138138
    139 + (void)load;
    140 {
    141     [self installMenu];
    142 }
    143 
    144139- (id)init {
    145140    self = [super initWithWindowNibName: @"FSAInterpreterPanel"];
     
    150145        static unsigned numInterpWindows = 0;
    151146
    152         NSAssert(window != nil, @"CanÕt get interpreter window!");
     147        NSAssert(window != nil, @"Can't get interpreter window!");
    153148        if (interpreterNum == 0) interpreterNum = ++numInterpWindows;
    154149        if ( (label = [self interpreterLabel]) != nil) {
Note: See TracChangeset for help on using the changeset viewer.