diff options
Diffstat (limited to 'Classes/SourcesEditViewController.m')
| -rw-r--r-- | Classes/SourcesEditViewController.m | 12 | 
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];  | 
