equal
deleted
inserted
replaced
58 [super dealloc]; |
58 [super dealloc]; |
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 { |
|
64 [self spawnThread:onSaveFile withOptions:nil]; |
|
65 } |
|
66 |
63 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary { |
67 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary { |
64 self.stream = (onSaveFile) ? [[NSOutputStream alloc] initToFileAtPath:onSaveFile append:YES] : nil; |
68 self.stream = (onSaveFile) ? [[NSOutputStream alloc] initToFileAtPath:onSaveFile append:YES] : nil; |
65 [self.stream open]; |
69 [self.stream open]; |
66 |
70 |
67 [NSThread detachNewThreadSelector:@selector(engineProtocol:) |
71 [NSThread detachNewThreadSelector:@selector(engineProtocol:) |
68 toTarget:self |
72 toTarget:self |
69 withObject:dictionary]; |
73 withObject:dictionary]; |
70 } |
|
71 |
|
72 -(void) spawnThread:(NSString *)onSaveFile { |
|
73 [self spawnThread:onSaveFile withOptions:nil]; |
|
74 } |
74 } |
75 |
75 |
76 #pragma mark - |
76 #pragma mark - |
77 #pragma mark Provider functions |
77 #pragma mark Provider functions |
78 // unpacks team data from the selected team.plist to a sequence of engine commands |
78 // unpacks team data from the selected team.plist to a sequence of engine commands |