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

version 1.2, 2002/03/07 18:42:42 version 1.3, 2002/04/08 22:30:20
Line 45 Line 45
     mWebFind = nsnull;      mWebFind = nsnull;
 }  }
   
 - (void)windowWillClose:(NSNotification *)notification  
 {  
     [self autorelease];  
 }  
   
 - (void)dealloc  - (void)dealloc
 {  {
Line 62 Line 58
     NS_IF_ADDREF(mWebFind);      NS_IF_ADDREF(mWebFind);
 }  }
   
   
   //
   // -find
   //
   // User clicked the find button, send the action to the window controller of the
   // frontmost browser window
   //
 -(IBAction) find: (id)aSender  -(IBAction) find: (id)aSender
 {  {
     NSEnumerator* windowList = [[NSApp windows] objectEnumerator];
     NSWindow* wind = [windowList nextObject];
     while ( wind ) {
       if ( [[wind windowController] respondsToSelector:@selector(findInPage:)] )
         break;
       wind = [windowList nextObject];
     }
     if ( wind )
       [[wind windowController] findInPage:[mSearchField stringValue]];
 }  }
   
 -(IBAction) cancel: (id)aSender  
 {  
     [[self window] close];  
 }  
   
 @end  @end

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


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