Fixed: tableView doens't update its content with capp_lint

This commit is contained in:
Alexandre Wilhelm
2014-04-22 11:42:19 -07:00
parent 41ed80e0c4
commit e8528271ee
+8 -1
View File
@@ -1795,6 +1795,7 @@ void fsevents_callback(ConstFSEventStreamRef streamRef,
NSInteger numberOfErrors = [errors count];
NSInteger i = 0;
NSString *path;
NSMutableArray *dicts = [NSMutableArray array];
if (numberOfFiles == 1)
path = [paths objectAtIndex:0];
@@ -1825,9 +1826,11 @@ void fsevents_callback(ConstFSEventStreamRef streamRef,
path, @"path",
nil];
[self.errorListController addObject:dict];
[dicts addObject:dict];
}
[self performSelectorOnMainThread:@selector(cappLintConversionDidGenerateError:) withObject:dicts waitUntilDone:NO];
self.isProcessing = NO;
[[NSNotificationCenter defaultCenter] postNotificationName:XCCBatchDidEndNotification object:self];
[[NSNotificationCenter defaultCenter] postNotificationName:XCCCappLintDidEndNotification object:self];
@@ -1835,6 +1838,10 @@ void fsevents_callback(ConstFSEventStreamRef streamRef,
return NO;
}
- (void)cappLintConversionDidGenerateError:(NSArray*)errors
{
[self.errorListController addObjects:errors];
}
#pragma mark - User notifications