From e6eb634beac831e64becc03928a467701f9625cf Mon Sep 17 00:00:00 2001 From: matt handler Date: Wed, 27 Apr 2011 01:25:19 -0400 Subject: made fetcher take a payload, added favicon, turned off statement caching, may turn it back on who knows, added sourceid to topics, added category to topictableviewcell, did a little cleaning --- Classes/SourcesEditViewController.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Classes/SourcesEditViewController.m') diff --git a/Classes/SourcesEditViewController.m b/Classes/SourcesEditViewController.m index 0d5bd85..7c7bf7b 100644 --- a/Classes/SourcesEditViewController.m +++ b/Classes/SourcesEditViewController.m @@ -52,9 +52,9 @@ sectionDictionary = [[[SectionDictionary alloc] init] retain]; db = [[FMDatabase databaseWithPath:[PicCastAppDelegate getDatabasePath]] retain]; - [db setShouldCacheStatements:YES]; - [db setTraceExecution:true]; - [db setLogsErrors:true]; + [db setShouldCacheStatements:NO]; + //[db setTraceExecution:true]; + //[db setLogsErrors:true]; [self loadSourcesFromDb]; @@ -130,10 +130,10 @@ //NSLog(@"class: %@", [array class]); [db open]; for (NSDictionary *obj in array) { - NSLog(@"foreign key: %d", [obj objectForKey:@"id"]); + //NSLog(@"foreign key: %d", [obj objectForKey:@"id"]); FMResultSet *result = [db executeQuery:@"SELECT * FROM subscribedSources WHERE foreignId = ?", [obj objectForKey:@"id"]]; if (![result next]) { - NSLog(@"found source"); + //NSLog(@"found source"); Source *source = [Source initWithJsonObject:obj]; [sectionDictionary appendObject:source forKey:source.category]; @@ -260,7 +260,7 @@ MyButton *switcher = (MyButton *)sender; NSIndexPath *indexPath = switcher.indexPath; NSNumber *foreignId = [[[sectionDictionary objectForIndex:indexPath.section] objectAtIndex:indexPath.row] foreignId]; - NSLog(@"number %d", foreignId); + NSLog(@"number %@", foreignId); [db open]; [db beginTransaction]; -- cgit v1.2.3