From e8528271ee1e782b14dec0414593fa91731022fc Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Tue, 22 Apr 2014 11:42:19 -0700 Subject: [PATCH] Fixed: tableView doens't update its content with capp_lint --- Tools/XcodeCapp/XcodeCapp/XcodeCapp.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m b/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m index ac7ac96a7..3fe93840e 100644 --- a/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m +++ b/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m @@ -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