Diff for /chimera/MainController.mm between versions 1.3 and 1.4

version 1.3, 2002/01/30 04:52:38 version 1.4, 2002/01/30 22:43:11
Line 9 Line 9
   
 -(void)awakeFromNib  -(void)awakeFromNib
 {  {
  NSLog(@"MainController -awakeFromNib");    [self newWindow: self];
  [self newWindow: nil]; 
 }  }
   
 -(IBAction)newWindow:(id)aSender  -(IBAction)newWindow:(id)aSender
 {  {
  [self openBrowserWindowWithURL:@"about:blank"];    BrowserWindowController* controller = [self openBrowserWindowWithURL:@"about:blank"];
     [controller focusURLBar];
 }
 
 -(IBAction) openFile:(id)aSender
 {
 }
 
 -(IBAction) openLocation:(id)aSender
 {
     NSWindow* keyWindow = [mApplication keyWindow];
     if (!keyWindow) {
       [self openBrowserWindowWithURL: @"about:blank"];
       keyWindow = [mApplication keyWindow];
     }
     
     [[keyWindow windowController] focusURLBar];
 }  }
   
 -(IBAction) back:(id)aSender  -(IBAction) back:(id)aSender
Line 43 Line 58
     [[[mApplication keyWindow] windowController] home: aSender];      [[[mApplication keyWindow] windowController] home: aSender];
 }  }
   
-(void)openBrowserWindowWithURL: (NSString*)aURL-(BrowserWindowController*)openBrowserWindowWithURL: (NSString*)aURL
 {  {
         NSLog(@"Opening Browser with URL: %@", aURL);          NSLog(@"Opening Browser with URL: %@", aURL);
         BrowserWindowController* browser = [[BrowserWindowController alloc] initWithWindowNibName: @"BrowserWindow"];          BrowserWindowController* browser = [[BrowserWindowController alloc] initWithWindowNibName: @"BrowserWindow"];
   
         [browser loadURL: aURL];          [browser loadURL: aURL];
         [browser showWindow: self];          [browser showWindow: self];
       
       return browser;
 }  }
   
 @end  @end

Removed from v.1.3  
changed lines
  Added in v.1.4


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