Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change to use DCTTableViewDataSources

  • Loading branch information...
commit b1b845024f4c67ea4b5782c0b29feb777ec75a71 1 parent 6243682
@danielctull authored
View
10 DCTFetchedResultsSearchController.h
@@ -44,13 +44,7 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
-#import "FRCFetchedResultsTableViewDataSource.h"
-
-#if !defined frctableviewdatasources
-#warning "FRCTableViewDataSources is required to use DCTFetchedResultsSearchController. Download from https://github.com/freerangecode/FRCTableViewDataSources"
-#elif frctableviewdatasources < frctableviewdatasources_1_0_2
-#warning "FRCTableViewDataSources 1.0.2 is required with this version of DCTFetchedResultsSearchController. Update at https://github.com/freerangecode/FRCTableViewDataSources"
-#endif
+#import <DCTTableViewDataSources/DCTTableViewDataSources.h>
typedef NSFetchRequest *(^DCTFetchedResultsSearchControllerSearchBlock) (NSString *searchString, NSArray *scopeOptions, NSInteger selectedOption);
@@ -59,7 +53,7 @@ typedef NSFetchRequest *(^DCTFetchedResultsSearchControllerSearchBlock) (NSStrin
@interface DCTFetchedResultsSearchController : NSObject <UISearchDisplayDelegate>
@property (nonatomic, strong) IBOutlet UISearchDisplayController *searchDisplayController;
-@property (nonatomic, strong, readonly) FRCFetchedResultsTableViewDataSource *fetchedResultsTableViewDataSource;
+@property (nonatomic, strong, readonly) DCTFetchedResultsTableViewDataSource *fetchedResultsTableViewDataSource;
@property (nonatomic, strong) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, copy) DCTFetchedResultsSearchControllerSearchBlock searchBlock;
View
6 DCTFetchedResultsSearchController.m
@@ -35,8 +35,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
*/
#import "DCTFetchedResultsSearchController.h"
-#import "FRCFetchedResultsTableViewDataSource.h"
-#import "FRCTableViewCell.h"
@interface DCTFetchedResultsSearchController ()
@@ -59,10 +57,10 @@ @implementation DCTFetchedResultsSearchController {
@synthesize fetchedResultsTableViewDataSource;
@synthesize managedObjectContext;
-- (FRCFetchedResultsTableViewDataSource *)fetchedResultsTableViewDataSource {
+- (DCTFetchedResultsTableViewDataSource *)fetchedResultsTableViewDataSource {
if (!fetchedResultsTableViewDataSource) {
- fetchedResultsTableViewDataSource = [[FRCFetchedResultsTableViewDataSource alloc] init];
+ fetchedResultsTableViewDataSource = [[DCTFetchedResultsTableViewDataSource alloc] init];
fetchedResultsTableViewDataSource.tableView = self.searchDisplayController.searchResultsTableView;
self.searchDisplayController.searchResultsDataSource = self.fetchedResultsTableViewDataSource;
fetchedResultsTableViewDataSource.managedObjectContext = self.managedObjectContext;
Please sign in to comment.
Something went wrong with that request. Please try again.