aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-14 20:33:08 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-14 20:33:08 +0000
commit263c981e4905595ebcb3e5d57609ddf75bdf40a2 (patch)
tree9effecef58ea99b2d4c73e51bfe3caaa5fc8ee80 /Source/SPAppController.m
parent956bb607e5b74391129ab214eff9f5c83884538d (diff)
downloadsequelpro-263c981e4905595ebcb3e5d57609ddf75bdf40a2.tar.gz
sequelpro-263c981e4905595ebcb3e5d57609ddf75bdf40a2.tar.bz2
sequelpro-263c981e4905595ebcb3e5d57609ddf75bdf40a2.zip
• URL scheme commands:
- display some error tooltips and improved the cancellation via ⌘. of the sequelpro://SP_PROCESS_ID@passToDoc/ExecuteQuery command
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m44
1 files changed, 22 insertions, 22 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 2dbf60bd..175df14c 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -661,28 +661,28 @@
BOOL userTerminated = NO;
- while(1) {
- NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask
- untilDate:[NSDate distantPast]
- inMode:NSDefaultRunLoopMode
- dequeue:YES];
-
- if ([event type] == NSKeyDown) {
- unichar key = [[event characters] length] == 1 ? [[event characters] characterAtIndex:0] : 0;
- if (([event modifierFlags] & NSCommandKeyMask) && key == '.') {
- userTerminated = YES;
- break;
- }
- }
- [NSApp sendEvent:event];
- if(![processDocument isWorking]) break;
- usleep(1000);
- }
-
- if(userTerminated) {
- NSBeep();
- return;
- }
+ // while(1) {
+ // NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask
+ // untilDate:[NSDate distantPast]
+ // inMode:NSDefaultRunLoopMode
+ // dequeue:YES];
+ //
+ // if ([event type] == NSKeyDown) {
+ // unichar key = [[event characters] length] == 1 ? [[event characters] characterAtIndex:0] : 0;
+ // if (([event modifierFlags] & NSCommandKeyMask) && key == '.') {
+ // userTerminated = YES;
+ // break;
+ // }
+ // }
+ // [NSApp sendEvent:event];
+ // if(![processDocument isWorking]) break;
+ // usleep(1000);
+ // }
+ //
+ // if(userTerminated) {
+ // NSBeep();
+ // return;
+ // }
if(processDocument && command) {
if([command isEqualToString:@"passToDoc"]) {