Diff for /chimera/MainController.mm between versions 1.32 and 1.33

version 1.32, 2002/03/10 19:26:16 version 1.33, 2002/03/20 07:34:07
Line 148  static const char* ioServiceContractID = Line 148  static const char* ioServiceContractID =
         if ([urlArray count] == 0)          if ([urlArray count] == 0)
             return;              return;
         NSURL* url = [urlArray objectAtIndex: 0];          NSURL* url = [urlArray objectAtIndex: 0];
           // ----------------------
           [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:url];
           // ----------------------
         NSWindow* keyWindow = [mApplication keyWindow];          NSWindow* keyWindow = [mApplication keyWindow];
         if (keyWindow)          if (keyWindow)
             return [[keyWindow windowController] loadURL: url];              return [[keyWindow windowController] loadURL: url];
Line 309  static const char* ioServiceContractID = Line 312  static const char* ioServiceContractID =
     [[AboutBox sharedInstance] showPanel:sender];      [[AboutBox sharedInstance] showPanel:sender];
 }  }
   
   - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
   {
       NSWindow* keyWindow = [mApplication keyWindow];
   
       if (keyWindow) {
           [[keyWindow windowController] loadURL:[NSURL fileURLWithPath:filename]];
       } else {
           [self openBrowserWindowWithURL:[NSURL fileURLWithPath:filename]];
       }
       
       return YES;
       
   }
   
   
 @end  @end

Removed from v.1.32  
changed lines
  Added in v.1.33


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>