@@ -51,6 +51,7 @@ @interface RKFetchedResultsTableController ()
51
51
@property (nonatomic , strong , readwrite ) NSFetchedResultsController *fetchedResultsController;
52
52
@property (nonatomic , strong ) NSArray *arraySortedFetchedObjects;
53
53
@property (nonatomic , assign , getter = hasRequestChanged) BOOL requestChanged;
54
+ @property (nonatomic , readonly ) Class HTTPOperationClass;
54
55
55
56
- (BOOL )performFetch : (NSError **)error ;
56
57
- (void )updateSortedArray ;
@@ -59,6 +60,7 @@ - (void)updateSortedArray;
59
60
@implementation RKFetchedResultsTableController
60
61
61
62
@dynamic delegate;
63
+ @dynamic HTTPOperationClass;
62
64
63
65
- (id )initWithTableView : (UITableView *)tableView viewController : (UIViewController *)viewController
64
66
{
@@ -258,7 +260,8 @@ - (NSFetchRequest *)fetchRequest
258
260
259
261
- (id )objectRequestOperationWithRequest : (NSURLRequest *)request
260
262
{
261
- RKManagedObjectRequestOperation *operation = [[RKManagedObjectRequestOperation alloc ] initWithRequest: request responseDescriptors: self .responseDescriptors];
263
+ RKHTTPRequestOperation *requestOperation = [[[self HTTPOperationClass ] alloc ] initWithRequest: request];
264
+ RKManagedObjectRequestOperation *operation = [[RKManagedObjectRequestOperation alloc ] initWithHTTPRequestOperation: requestOperation responseDescriptors: self .responseDescriptors];
262
265
operation.managedObjectContext = self.managedObjectContext ;
263
266
operation.fetchRequestBlocks = self.fetchRequestBlocks ;
264
267
operation.managedObjectCache = self.managedObjectCache ;
0 commit comments