aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-11-22 13:01:45 +0000
committerBibiko <bibiko@eva.mpg.de>2010-11-22 13:01:45 +0000
commit151ef11fca8f5d95d0383188b7f5cc3b67461be6 (patch)
tree5b3f2cde4f9fd15cbebd9783d8240af675decfe0 /Source/SPAppController.m
parente30cdeb6ee289fc4221d7b3fc5ec9e58be059675 (diff)
downloadsequelpro-151ef11fca8f5d95d0383188b7f5cc3b67461be6.tar.gz
sequelpro-151ef11fca8f5d95d0383188b7f5cc3b67461be6.tar.bz2
sequelpro-151ef11fca8f5d95d0383188b7f5cc3b67461be6.zip
• sequelpro url scheme support
• added commands: SelectDocumentView, ReloadContentTableWithWHEREClause • fixed typos • tried to queue incoming commands
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index d5a3cef2..0a59287c 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -562,6 +562,16 @@
}
}
+ while(1) {
+ NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask
+ untilDate:[NSDate distantPast]
+ inMode:NSDefaultRunLoopMode
+ dequeue:YES];
+ // if(!event) continue;
+ [NSApp sendEvent:event];
+ if(![processDocument isWorking]) break;
+ usleep(1000);
+ }
if(processDocument && command && [command isEqualToString:@"passToDoc"]) {
NSMutableDictionary *cmdDict = [NSMutableDictionary dictionary];