New Example Work

This commit is contained in:
Jeremy Ellison
2011-01-12 14:38:00 -05:00
parent 90c85e632f
commit 38d5b3cbd7
18 changed files with 150 additions and 20 deletions

View File

@@ -13,14 +13,6 @@
@implementation DBManagedObjectCache
- (NSArray*)fetchRequestsForResourcePath:(NSString*)resourcePath {
// Don't return anything from the cache if we are online..
// If we return cached objects, RestKit assumes they are up to date
// and does not hit the server.
// if ([[RKObjectManager sharedManager] isOnline]) {
// return nil;
// }
if ([resourcePath isEqualToString:@"/topics"]) {
NSFetchRequest* request = [DBTopic fetchRequest];
NSSortDescriptor* sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"createdAt" ascending:YES];