equal
deleted
inserted
replaced
59 } |
59 } |
60 |
60 |
61 #pragma mark - |
61 #pragma mark - |
62 #pragma mark Spawner functions |
62 #pragma mark Spawner functions |
63 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary { |
63 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary { |
64 self.stream = [[NSOutputStream alloc] initToFileAtPath:onSaveFile append:YES]; |
64 self.stream = (onSaveFile) ? [[NSOutputStream alloc] initToFileAtPath:onSaveFile append:YES] : nil; |
65 [self.stream open]; |
65 [self.stream open]; |
66 |
66 |
67 [NSThread detachNewThreadSelector:@selector(engineProtocol:) |
67 [NSThread detachNewThreadSelector:@selector(engineProtocol:) |
68 toTarget:self |
68 toTarget:self |
69 withObject:dictionary]; |
69 withObject:dictionary]; |