diff options
author | matt handler <matt.handler@gmail.com> | 2011-04-29 16:35:15 -0400 |
---|---|---|
committer | matt handler <matt.handler@gmail.com> | 2011-04-29 16:35:15 -0400 |
commit | 869398ebfb18702b9de42f723ff8072b116eb04f (patch) | |
tree | 84a8bbff635bcd4d5c0f6edc42dc535134e02ab4 /Classes/SourcesEditViewController.m | |
parent | e788dbb246a2c9673d595420beca061123526d50 (diff) | |
download | piccast-app-869398ebfb18702b9de42f723ff8072b116eb04f.tar.gz piccast-app-869398ebfb18702b9de42f723ff8072b116eb04f.zip |
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
Diffstat (limited to 'Classes/SourcesEditViewController.m')
-rw-r--r-- | Classes/SourcesEditViewController.m | 6 |
1 files changed, 3 insertions, 3 deletions
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]; } |