diff --git a/Tools/XcodeCapp/TNXCodeCapp.m b/Tools/XcodeCapp/TNXCodeCapp.m index debbdf0d1..06c3a1ac2 100644 --- a/Tools/XcodeCapp/TNXCodeCapp.m +++ b/Tools/XcodeCapp/TNXCodeCapp.m @@ -537,6 +537,18 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification response = [statusInfo objectAtIndex:1]; DLog(@"handleFileModification:notify: Conversion task result/response: %@/%@", status, response); + + if ([status intValue] == 0 && shouldNotify) + { + [delegate performSelector:@selector(growlWithTitle:message:) withObject:successTitle withObject:successMsg]; + } + else if (![status intValue] == 0) + { + if (response) + [errorList addObject:response]; + + [delegate performSelector:@selector(growlWithTitle:message:) withObject:@"Error processing file" withObject:splitPath]; + } } if (PBXArguments) @@ -548,18 +560,6 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification DLog(@"handleFileModification:notify: Update PBX Task result/response: %@/%@", status, response); } - if ([status intValue] == 0 && shouldNotify) - { - [delegate performSelector:@selector(growlWithTitle:message:) withObject:successTitle withObject:successMsg]; - } - else if (![status intValue] == 0) - { - if (response) - [errorList addObject:response]; - - [delegate performSelector:@selector(growlWithTitle:message:) withObject:@"Error processing file" withObject:splitPath]; - } - [[NSNotificationCenter defaultCenter] postNotificationName:XCCConversionStopNotification object:self]; DLog(@"handleFileModification:notify: Processed: %@", fullPath); }