mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-02 22:44:53 +08:00
Improved Three20 integration by leveraging object mapping to instantiate TTTableItems
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
- (NSArray*)fetchRequestsForResourcePath:(NSString*)resourcePath {
|
||||
if ([resourcePath isEqualToString:@"/topics"]) {
|
||||
NSFetchRequest* request = [DBTopic fetchRequest];
|
||||
NSSortDescriptor* sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"createdAt" ascending:YES];
|
||||
NSSortDescriptor* sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"createdAt" ascending:YES] autorelease];
|
||||
[request setSortDescriptors:[NSArray arrayWithObject:sortDescriptor]];
|
||||
return [NSArray arrayWithObject:request];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user