From 39478a90674f2b4238ba1cfaa49908deb0200e24 Mon Sep 17 00:00:00 2001 From: matt handler Date: Tue, 26 Apr 2011 18:05:17 -0400 Subject: aww yeah it works --- Classes/Topic.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Classes/Topic.m') diff --git a/Classes/Topic.m b/Classes/Topic.m index 8b7ec20..12364f8 100644 --- a/Classes/Topic.m +++ b/Classes/Topic.m @@ -29,6 +29,7 @@ topic.releaseDate = [result dateForColumn:@"releaseDate"]; topic.category = [result stringForColumn:@"category"]; topic.picCount = [NSNumber numberWithInt:[result intForColumn:@"picCount"]]; + topic.foreignId = [NSNumber numberWithInt:[result intForColumn:@"foreignId"]]; return topic; } @@ -44,7 +45,7 @@ topic.description = [obj objectForKey:@"description"]; topic.releaseDate = [NSDate dateWithTimeIntervalSince1970:[[obj objectForKey:@"created_unixtime"] doubleValue]]; topic.category = [obj objectForKey:@"category"]; - topic.picCount = [NSNumber numberWithInt:10]; //[obj objectForKey:@"picCount"]; + topic.picCount = [obj objectForKey:@"pic_count"]; return topic; } -- cgit v1.2.3