File:  [mozdev] / chimera / MainController.mm
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Jan 29 10:01:11 2002 UTC (17 years, 10 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
Initial commit of Chimera, a Gecko-based browser with a native Cocoa front end.

    1: //
    2: //  MainController.mm
    3: //  Chimera
    4: //
    5: //  Created by David Hyatt on Tue Jan 29 2002.
    6: //  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
    7: //
    8: 
    9: #import "MainController.h"
   10: #import "BrowserWindowController.h"
   11: 
   12: @implementation MainController
   13: 
   14: -(void)awakeFromNib
   15: {
   16:   NSLog(@"HELLO?");
   17:   [self newWindow: nil];
   18: }
   19: 
   20: -(IBAction)newWindow:(id)aSender
   21: {
   22:   [self openBrowserWindowWithURL: @"about:blank"];
   23: }
   24: 
   25: -(void)openBrowserWindowWithURL: (NSString*)aURL
   26: {
   27:   NSLog(@"YARF!");
   28:   BrowserWindowController* browser = [[BrowserWindowController alloc] initWithWindowNibName: @"BrowserWindow"];
   29:   [browser loadURL: aURL];
   30:   [browser showWindow: self];
   31: }
   32: 
   33: @end

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