Annotation of chimera/FindDlgController.mm, revision 1.1

1.1     ! hyatt       1: //
        !             2: //  FindDlgController.mm
        !             3: //  Chimera
        !             4: //
        !             5: //  Created by David Hyatt on Tue Feb 05 2002.
        !             6: //  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
        !             7: //
        !             8: 
        !             9: #import "FindDlgController.h"
        !            10: #include "nsCOMPtr.h"
        !            11: 
        !            12: @implementation FindDlgController
        !            13: 
        !            14: - (void)windowDidLoad
        !            15: {
        !            16:     mWebFind = nsnull;
        !            17: }
        !            18: 
        !            19: - (void)windowWillClose:(NSNotification *)notification
        !            20: {
        !            21:     [self autorelease];
        !            22: }
        !            23: 
        !            24: - (void)dealloc
        !            25: {
        !            26:     NS_IF_RELEASE(mWebFind);
        !            27:     [super dealloc];
        !            28: }
        !            29: 
        !            30: -(void)setFind: (nsIWebBrowserFind*)aFind
        !            31: {
        !            32:     mWebFind = aFind;
        !            33:     NS_IF_ADDREF(mWebFind);
        !            34: }
        !            35: 
        !            36: -(IBAction) find: (id)aSender
        !            37: {
        !            38: }
        !            39: 
        !            40: -(IBAction) cancel: (id)aSender
        !            41: {
        !            42:     [[self window] close];
        !            43: }
        !            44: 
        !            45: @end

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