Modern syntax

This commit is contained in:
Kornel Lesiński committed 2014-06-17 20:48:00 +01:00
1 parent 9d03d79ca7
commit b0c9c31dc1
36 files changed
+175 -183

No files matched your search

+3 -3
View File
@@ -32,7 +32,7 @@
- (void)taskOutputAvailable:(NSNotification*)note
{
self.output = [[note userInfo] objectForKey:NSFileHandleNotificationDataItem];
self.output = [note userInfo][NSFileHandleNotificationDataItem];
self.done = YES;
}
@@ -42,7 +42,7 @@
self.result = [self.task terminationStatus];
}
- (id)init;
- (instancetype)init;
{
self = [super init];
if (self)
@@ -94,7 +94,7 @@
name:NSTaskDidTerminateNotification
object:[self task]];
[[[self outputPipe] fileHandleForReading] readToEndOfFileInBackgroundAndNotifyForModes:[NSArray arrayWithObjects:NSDefaultRunLoopMode, NSModalPanelRunLoopMode, NSEventTrackingRunLoopMode, nil]];
[[[self outputPipe] fileHandleForReading] readToEndOfFileInBackgroundAndNotifyForModes:@[NSDefaultRunLoopMode, NSModalPanelRunLoopMode, NSEventTrackingRunLoopMode]];
@try
{