Broken commit - refactoring search

This commit is contained in:
michael starke
2014-02-24 12:05:41 +01:00
parent c084d49d95
commit 81dc24d9b2
12 changed files with 118 additions and 165 deletions

View File

@@ -15,7 +15,7 @@
#import "MPPasteBoardController.h"
#import "MPOverlayWindowController.h"
#import "MPContextBarViewController.h"
#import "MPEntryFilterHelper.h"
#import "MPDocumentSearchService.h"
#import "MPContextMenuHelper.h"
#import "MPActionHelper.h"
@@ -335,7 +335,7 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
dispatch_async(backgroundQueue, ^{
MPDocument *document = [[self windowController] document];
self.filteredEntries = [MPEntryFilterHelper entriesInDocument:document
self.filteredEntries = [MPDocumentSearchService entriesInDocument:document
matching:self.contextBarViewController.filterString
usingFilterMode:self.contextBarViewController.filterMode];
@@ -353,6 +353,10 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
[self _showContextBar];
}
- (void)clearFilter:(id)sender {
[self.contextBarViewController exitFilter:sender];
}
#pragma mark ContextBar
- (void)_showTrashBar {
[self.contextBarViewController showTrash];