From 869398ebfb18702b9de42f723ff8072b116eb04f Mon Sep 17 00:00:00 2001 From: matt handler Date: Fri, 29 Apr 2011 16:35:15 -0400 Subject: changing subscribedSources -> sources, adding instant level today/tomorrow/yesterday for section headers, setting status bar to black and showing once app loads, handling url just an nslog right now, updated image, added piccast:// protocol, setting up faves in the db, adding search and browse views --- Classes/SourcesEditViewController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Classes/SourcesEditViewController.m') diff --git a/Classes/SourcesEditViewController.m b/Classes/SourcesEditViewController.m index 7c7bf7b..857dbb0 100644 --- a/Classes/SourcesEditViewController.m +++ b/Classes/SourcesEditViewController.m @@ -75,7 +75,7 @@ - (void) loadSourcesFromDb { [db open]; - FMResultSet *result = [db executeQuery:@"SELECT * FROM subscribedSources"]; + FMResultSet *result = [db executeQuery:@"SELECT * FROM sources"]; while ([result next]) { Source *source = [Source initFromDatabaseRow:result]; [sectionDictionary appendObject:source forKey:source.category]; @@ -131,7 +131,7 @@ [db open]; for (NSDictionary *obj in array) { //NSLog(@"foreign key: %d", [obj objectForKey:@"id"]); - FMResultSet *result = [db executeQuery:@"SELECT * FROM subscribedSources WHERE foreignId = ?", [obj objectForKey:@"id"]]; + FMResultSet *result = [db executeQuery:@"SELECT * FROM sources WHERE foreignId = ?", [obj objectForKey:@"id"]]; if (![result next]) { //NSLog(@"found source"); Source *source = [Source initWithJsonObject:obj]; @@ -264,7 +264,7 @@ [db open]; [db beginTransaction]; - [db executeUpdate:@"UPDATE subscribedSources SET subscribed = ? WHERE foreignId = ?", [NSNumber numberWithInt:(switcher.on ? 1 : 0)], foreignId]; + [db executeUpdate:@"UPDATE sources SET subscribed = ? WHERE foreignId = ?", [NSNumber numberWithInt:(switcher.on ? 1 : 0)], foreignId]; [db commit]; [db close]; } -- cgit v1.2.3