mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-07 01:18:02 +00:00
use terminationStatus, not lenght of the nib2cib output
This commit is contained in:
1 parent
e97d4a8e72
commit
c03b3c2d34
1 file changed
+3
-3
@@ -230,13 +230,13 @@ void fsevents_callback(ConstFSEventStreamRef streamRef, void *userData, size_t n
|
||||
NSData *stdOut;
|
||||
stdOut = [[[task standardOutput] fileHandleForReading] availableData];
|
||||
NSString *response;
|
||||
response = [[NSString alloc] initWithData: stdOut
|
||||
encoding: NSUTF8StringEncoding];
|
||||
response = [[NSString alloc] initWithData:stdOut
|
||||
encoding:NSUTF8StringEncoding];
|
||||
|
||||
NSLog(@"response was\n%@", response);
|
||||
|
||||
[_statusItem setTitle:@""];
|
||||
if ([response length] == 0)
|
||||
if ([task terminationStatus] == 0)
|
||||
{
|
||||
if (!shouldIgnoreDate)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user