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

version 1.30, 2002/03/10 07:36:38 version 1.33, 2002/03/20 07:34:07
Line 65  static const char* ioServiceContractID = Line 65  static const char* ioServiceContractID =
 -(void)awakeFromNib  -(void)awakeFromNib
 {  {
     [self newWindow: self];      [self newWindow: self];
   
       [mSplashScreen close];
           
     [mBookmarksMenu setAutoenablesItems: NO];      [mBookmarksMenu setAutoenablesItems: NO];
           
Line 87  static const char* ioServiceContractID = Line 89  static const char* ioServiceContractID =
     if (mOffline)      if (mOffline)
         [mOfflineMenuItem setTitle: @"Go Online"];          [mOfflineMenuItem setTitle: @"Go Online"];
   
     [mSplashScreen close];  
 }  }
   
 -(IBAction)newWindow:(id)aSender  -(IBAction)newWindow:(id)aSender
 {  {
    BrowserWindowController* controller = [self openBrowserWindowWithURLString:@"about:blank"];  // If we have a key window, have it autosave its dimensions before
    [controller focusURLBar];  // we open a new window.  That ensures the size ends up matching.
}  NSWindow* keyWindow = [mApplication keyWindow];
   if (keyWindow)
     [[keyWindow windowController] autosaveWindowFrame];
 
   // Now open the new window.
   BrowserWindowController* controller = [self openBrowserWindowWithURLString:@"about:blank"];
   [controller focusURLBar];
 }       
   
 -(IBAction)newTab:(id)aSender  -(IBAction)newTab:(id)aSender
 {  {
Line 140  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 301  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.30  
changed lines
  Added in v.1.33


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