mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-04 09:37:55 +08:00
* Introduces RKRequestCache for cacheing responses (supports ETag conditional GET, use cache if available, use cache on error, etc.) closes #75 * Updates to Three20 layer to eliminate need for intermediary TTTableItem classes closes #76 * Fixes to ensure iOS 3.x compatability: * Switched compiler to Clang * Updated conditional checks for UIBackgroundTask symbols to ensure runtime safety on iOS 3.x * Removed unnecessary linkage against UIKit and CoreFoundation from library targets * Fix for issue where RKRequest objects could become stuck in infinite loop within RKRequestQueue loadNextInQueue if you start a request and then cancel immediately. On cancel only decrement loadCount if the request has start loading. refs #122
25 lines
583 B
Objective-C
25 lines
583 B
Objective-C
//
|
|
// RKTableViewDataSource.h
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 4/26/11.
|
|
// Copyright 2011 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import <Three20/Three20.h>
|
|
#import "../RestKit.h"
|
|
|
|
@interface RKTableViewDataSource : TTTableViewDataSource {
|
|
NSMutableDictionary* _objectToTableCellMappings;
|
|
}
|
|
|
|
// The objects loaded via the RKObjectLoaderTTModel instance...
|
|
@property (nonatomic, readonly) NSArray* modelObjects;
|
|
|
|
+ (id)dataSource;
|
|
- (void)registerCellClass:(Class)cellCell forObjectClass:(Class)objectClass; // TODO: Better method name??
|
|
|
|
// TODO: Delegate?
|
|
|
|
@end
|