Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(IBAction)kickOff:(id)sender
- {
- if ([StartButton state] == NSOffState) {
- [self setupGUIEnv];
- [self setupMindSetEnv];
- [self setupServerConnection];
- retVal = [self newMindSetConnection];
- if(!retVal)
- {
- fprintf(stderr, "connected to MindSet.\n");
- [GUIstatus setImage:[NSImage imageNamed: @"headphones_accept.png"]];
- stopGetData = 0;
- totalErs = 0;
- [NSThread detachNewThreadSelector:@selector(getData) toTarget:self withObject:nil];
- }
- else {
- fprintf(stderr, "no MindSet connection.\n");
- [self endMindSetConnection];
- }
- }else if ([StartButton state] == NSOnState){
- [self endMindSetConnection];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement