Changeset 2655
- Timestamp:
- 05/06/05 08:56:18 (4 years ago)
- Files:
-
- trunk/JVChatTranscriptPanel.m (modified) (2 diffs)
- trunk/MVApplicationController.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/JVChatTranscriptPanel.m
r2650 r2655 84 84 [display setScrollbackLimit:1000]; 85 85 86 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector( _refreshSearch ) name:JVStyleViewDidChangeStylesNotification object:display]; 87 86 88 if( ! [self style] ) { 87 89 JVStyle *style = [JVStyle defaultStyle]; … … 228 230 - (IBAction) performQuickSearch:(id) sender { 229 231 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]; 231 234 } else { 232 235 // this is for text mode users, and is what Apple does in Tiger's Mail trunk/MVApplicationController.m
r2645 r2655 214 214 NSAppleEventManager *sam = [NSAppleEventManager sharedAppleEventManager]; 215 215 NSAppleEventDescriptor *lastEvent = [sam currentAppleEvent]; 216 searchString = [[lastEvent descriptorForKeyword: keyAESearchText] stringValue];216 searchString = [[lastEvent descriptorForKeyword:'stxt'] stringValue]; // keyAESearchText 217 217 #endif 218 218 219 219 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]; 224 221 225 222 return YES;
