27 lines
785 B
Objective-C
27 lines
785 B
Objective-C
//
|
|
// MPSearchDelegate.h
|
|
// MasterPassword
|
|
//
|
|
// Created by Maarten Billemont on 04/01/12.
|
|
// Copyright (c) 2012 Lyndir. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "MPElementEntity.h"
|
|
|
|
@protocol MPSearchResultsDelegate <NSObject>
|
|
|
|
- (void)didSelectElement:(MPElementEntity *)element;
|
|
|
|
@end
|
|
|
|
@interface MPSearchDelegate : NSObject <UITableViewDelegate, UITableViewDataSource, UISearchDisplayDelegate, NSFetchedResultsControllerDelegate>
|
|
|
|
@property (strong, nonatomic) NSFetchedResultsController *fetchedResultsController;
|
|
|
|
@property (weak, nonatomic) IBOutlet id<MPSearchResultsDelegate> delegate;
|
|
@property (weak, nonatomic) IBOutlet UISearchDisplayController *searchDisplayController;
|
|
@property (weak, nonatomic) IBOutlet UIView *searchTipContainer;
|
|
|
|
@end
|