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

version 1.2, 2002/01/29 19:53:45 version 1.3, 2002/01/30 04:52:38
Line 1 Line 1
///*
//  MainController.mm *  MainController.mm
//  Chimera */
// 
//  Created by David Hyatt on Tue Jan 29 2002. 
//  Copyright (c) 2001 __MyCompanyName__. All rights reserved. 
// 
   
 #import "MainController.h"  #import "MainController.h"
 #import "BrowserWindowController.h"  #import "BrowserWindowController.h"
Line 13 Line 9
   
 -(void)awakeFromNib  -(void)awakeFromNib
 {  {
  NSLog(@"HELLO?");  NSLog(@"MainController -awakeFromNib");
   [self newWindow: nil];    [self newWindow: nil];
 }  }
   
 -(IBAction)newWindow:(id)aSender  -(IBAction)newWindow:(id)aSender
 {  {
  [self openBrowserWindowWithURL: @"about:blank"];  [self openBrowserWindowWithURL:@"about:blank"];
 }  }
   
 -(IBAction) back:(id)aSender  -(IBAction) back:(id)aSender
Line 49 Line 45
   
 -(void)openBrowserWindowWithURL: (NSString*)aURL  -(void)openBrowserWindowWithURL: (NSString*)aURL
 {  {
  NSLog(@"YARF!");        NSLog(@"Opening Browser with URL: %@", aURL);
  BrowserWindowController* browser = [[BrowserWindowController alloc] initWithWindowNibName: @"BrowserWindow"];        BrowserWindowController* browser = [[BrowserWindowController alloc] initWithWindowNibName: @"BrowserWindow"];
  [browser loadURL: aURL];
  [browser showWindow: self];        [browser loadURL: aURL];
         [browser showWindow: self];
 }  }
   
 @end  @end

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


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