Changeset 2655

Show
Ignore:
Timestamp:
05/06/05 08:56:18 (4 years ago)
Author:
timothy
Message:
  • Pass Spotlight's search word to the panel.
  • More fixes for Panther building.
  • Reset the search highlights on style switch.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/JVChatTranscriptPanel.m

    r2650 r2655  
    8484        [display setScrollbackLimit:1000]; 
    8585 
     86        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector( _refreshSearch ) name:JVStyleViewDidChangeStylesNotification object:display]; 
     87 
    8688        if( ! [self style] ) { 
    8789                JVStyle *style = [JVStyle defaultStyle]; 
     
    228230- (IBAction) performQuickSearch:(id) sender { 
    229231        if( [sender isKindOfClass:[NSTextField class]] ) { 
    230                 [self setSearchQuery:[sender stringValue]]; 
     232                if( [[sender stringValue] length] >= 3 ) [self setSearchQuery:[sender stringValue]]; 
     233                else [self setSearchQuery:nil]; 
    231234        } else { 
    232235                // this is for text mode users, and is what Apple does in Tiger's Mail 
  • trunk/MVApplicationController.m

    r2645 r2655  
    214214                NSAppleEventManager *sam = [NSAppleEventManager sharedAppleEventManager]; 
    215215                NSAppleEventDescriptor *lastEvent = [sam currentAppleEvent]; 
    216                 searchString = [[lastEvent descriptorForKeyword:keyAESearchText] stringValue]; 
     216                searchString = [[lastEvent descriptorForKeyword:'stxt'] stringValue]; // keyAESearchText 
    217217#endif 
    218218 
    219219                JVChatTranscriptPanel *transcript = [[JVChatController defaultController] chatViewControllerForTranscript:filename]; 
    220  
    221                 if( searchString ) { 
    222                         // Insert code to actually look up the string in the opened controller 
    223                 } 
     220                if( searchString ) [transcript setSearchQuery:searchString]; 
    224221 
    225222                return YES;