Fixes search field (Issue #65)

This commit is contained in:
Frank Enderle
2013-12-08 00:37:41 +01:00
parent 8bb2428a96
commit 7215677b86
2 changed files with 19 additions and 1 deletions

View File

@@ -342,6 +342,10 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
#pragma mark Filtering
- (void)showFilter:(id)sender {
if([self _showsFilterBar]) {
[self.filterSearchField selectText:self];
}
[self _showFilterBarAnimated];
}
@@ -410,6 +414,17 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
self.filter = [self.filterSearchField stringValue];
}
- (BOOL)control:(NSControl*)control textView:(NSTextView*)textView doCommandBySelector:(SEL)commandSelector
{
if (commandSelector == @selector(insertNewline:))
{
self.filter = [self.filterSearchField stringValue];
}
return NO;
}
- (void)_setupFilterBar {
if(!self.filterBar) {
/*