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

version 1.3, 2002/04/08 22:30:20 version 1.4, 2002/04/09 17:18:04
Line 67 Line 67
 //  //
 -(IBAction) find: (id)aSender  -(IBAction) find: (id)aSender
 {  {
  NSEnumerator* windowList = [[NSApp windows] objectEnumerator];  NSWindowController* controller = [[NSApp mainWindow] windowController];
  NSWindow* wind = [windowList nextObject];  if ( [controller respondsToSelector:@selector(findInPage:)] )
  while ( wind ) {    [controller findInPage:[mSearchField stringValue]];
    if ( [[wind windowController] respondsToSelector:@selector(findInPage:)] ) 
      break; 
    wind = [windowList nextObject]; 
  } 
  if ( wind ) 
    [[wind windowController] findInPage:[mSearchField stringValue]]; 
 }  }
   
   
   //
   // textDidEndEditing
   //
   // Check if there is anything in the text field, and if not, disable the find button
   //
   - (void)textDidChange:(NSNotification *)aNotification
   {
   NSLog(@"Here!");
     if ( [[mSearchField stringValue] length] )
       [mFindButton setEnabled:PR_TRUE];
     else
       [mFindButton setEnabled:PR_FALSE];    
   }
   
 @end  @end

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


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