Changeset 371
- Timestamp:
- 04/09/07 19:57:08 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/LaserLine_2.0/Src/MainController.m
r369 r371 55 55 56 56 - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { 57 /* 57 58 if ([output stopDevice]) { 58 59 NSLog(@"applicationShouldTerminate: later..."); … … 60 61 } 61 62 NSLog(@"applicationShouldTerminate: now!"); 63 */ 64 [output stopDevice]; 65 sleep(1); 62 66 return NSTerminateNow; 63 67 } trunk/LaserLine_2.0/Src/OutputController/EasyLaseDriverThread.m
r369 r371 110 110 [self stopCards]; 111 111 JRLogDebug(@"Driver Thread is exiting."); 112 /* 112 113 NSInvocation *reply = 113 114 [NSInvocation invocationWithMethodSignature:[NSApp methodSignatureForSelector:@selector(replyToApplicationShouldTerminate:)]]; … … 115 116 [reply setArgument:(void *)YES atIndex:2]; 116 117 [reply performSelectorOnMainThread:@selector(invoke) withObject:nil waitUntilDone:NO]; 118 */ 117 119 [pool release]; 118 120 }
