Changeset 1804


Ignore:
Timestamp:
Apr 25, 2007, 11:56:24 AM (15 years ago)
Author:
livings124
Message:

move debug warning code from awakeFromNib to applicationDidFinishLaunching: so that only one Help menu is created

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1800 r1804  
    419419    fAutoImportedNames = [[NSMutableArray alloc] init];
    420420    [self checkAutoImportDirectory];
     421}
     422
     423- (void) applicationDidFinishLaunching: (NSNotification *) notification
     424{
     425    [NSApp setServicesProvider: self];
     426   
     427    //register for dock icon drags
     428    [[NSAppleEventManager sharedAppleEventManager] setEventHandler: self
     429        andSelector: @selector(handleOpenContentsEvent:replyEvent:)
     430        forEventClass: kCoreEventClass andEventID: kAEOpenContents];
    421431   
    422432    //debug warning
     
    435445        [alert release];
    436446    }
    437 }
    438 
    439 - (void) applicationDidFinishLaunching: (NSNotification *) notification
    440 {
    441     [NSApp setServicesProvider: self];
    442    
    443     //register for dock icon drags
    444     [[NSAppleEventManager sharedAppleEventManager] setEventHandler: self
    445         andSelector: @selector(handleOpenContentsEvent:replyEvent:)
    446         forEventClass: kCoreEventClass andEventID: kAEOpenContents];
    447447}
    448448
Note: See TracChangeset for help on using the changeset viewer.