Annotation of chimera/MainController.mm, revision 1.2

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: 
1.2     ! hyatt      25: -(IBAction) back:(id)aSender
        !            26: {
        !            27:     [[[mApplication keyWindow] windowController] back: aSender]; 
        !            28: }
        !            29: 
        !            30: -(IBAction) forward:(id)aSender
        !            31: {
        !            32:     [[[mApplication keyWindow] windowController] forward: aSender]; 
        !            33: }
        !            34: 
        !            35: -(IBAction) reload:(id)aSender
        !            36: {
        !            37:     [[[mApplication keyWindow] windowController] reload: aSender]; 
        !            38: }
        !            39: 
        !            40: -(IBAction) stop:(id)aSender
        !            41: {
        !            42:     [[[mApplication keyWindow] windowController] stop: aSender]; 
        !            43: }
        !            44: 
        !            45: -(IBAction) home:(id)aSender
        !            46: {
        !            47:     [[[mApplication keyWindow] windowController] home: aSender];
        !            48: }
        !            49: 
1.1       hyatt      50: -(void)openBrowserWindowWithURL: (NSString*)aURL
                     51: {
                     52:   NSLog(@"YARF!");
                     53:   BrowserWindowController* browser = [[BrowserWindowController alloc] initWithWindowNibName: @"BrowserWindow"];
                     54:   [browser loadURL: aURL];
                     55:   [browser showWindow: self];
                     56: }
                     57: 
                     58: @end

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