28 lines
802 B
C
28 lines
802 B
C
|
//
|
||
|
// OPSearchDelegate.h
|
||
|
// OnePassword
|
||
|
//
|
||
|
// Created by Maarten Billemont on 04/01/12.
|
||
|
// Copyright (c) 2012 Lyndir. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import "OPElementEntity.h"
|
||
|
|
||
|
@protocol OPSearchResultsDelegate <NSObject>
|
||
|
|
||
|
- (void)didSelectElement:(OPElementEntity *)element;
|
||
|
|
||
|
@end
|
||
|
|
||
|
@interface OPSearchDelegate : NSObject <UITableViewDelegate, UITableViewDataSource, UISearchDisplayDelegate, NSFetchedResultsControllerDelegate>
|
||
|
|
||
|
@property (strong, nonatomic) NSFetchedResultsController *fetchedResultsController;
|
||
|
|
||
|
@property (weak, nonatomic) IBOutlet id<OPSearchResultsDelegate> delegate;
|
||
|
@property (weak, nonatomic) IBOutlet UISearchDisplayController *searchDisplayController;
|
||
|
|
||
|
- (void)configureCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath;
|
||
|
|
||
|
@end
|