summaryrefslogtreecommitdiffstats
path: root/Classes/SourcesEditViewController.m
diff options
context:
space:
mode:
authormatt handler <matt.handler@gmail.com>2011-04-27 01:25:19 -0400
committermatt handler <matt.handler@gmail.com>2011-04-27 01:25:19 -0400
commite6eb634beac831e64becc03928a467701f9625cf (patch)
treebf6df33a2a77c6ee462438f9e0e38c1717414a4f /Classes/SourcesEditViewController.m
parent39478a90674f2b4238ba1cfaa49908deb0200e24 (diff)
downloadpiccast-app-e6eb634beac831e64becc03928a467701f9625cf.tar.gz
piccast-app-e6eb634beac831e64becc03928a467701f9625cf.zip
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
Diffstat (limited to 'Classes/SourcesEditViewController.m')
-rw-r--r--Classes/SourcesEditViewController.m12
1 files changed, 6 insertions, 6 deletions
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];