Annotation of chimera/MainController.mm, revision 1.1

1.1     ! hyatt       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>