diff --git a/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m b/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m index 305662ec6..3c9835b23 100644 --- a/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m +++ b/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m @@ -1731,13 +1731,16 @@ void fsevents_callback(ConstFSEventStreamRef streamRef, - (IBAction)checkProjectWithCappLint:(id)aSender { [self clearErrors:self]; - [self checkCappLintForPath:self.projectPath]; + [self performSelectorInBackground:@selector(checkCappLintForPath:) withObject:self.projectPath]; } - (void)checkCappLintForPath:(NSString*)aPath { DDLogVerbose(@"Checking path %@ with capp_lint", aPath); + self.isProcessing = YES; + [[NSNotificationCenter defaultCenter] postNotificationName:XCCBatchDidStartNotification object:self]; + NSArray *arguments = [NSArray arrayWithObject:aPath]; NSDictionary *taskResult = [self runTaskWithLaunchPath:self.executablePaths[@"capp_lint"] @@ -1786,6 +1789,9 @@ void fsevents_callback(ConstFSEventStreamRef streamRef, } [self showErrors]; + + self.isProcessing = NO; + [[NSNotificationCenter defaultCenter] postNotificationName:XCCBatchDidEndNotification object:self]; } @end