From 151ef11fca8f5d95d0383188b7f5cc3b67461be6 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 22 Nov 2010 13:01:45 +0000 Subject: =?UTF-8?q?=E2=80=A2=20sequelpro=20url=20scheme=20support=20?= =?UTF-8?q?=E2=80=A2=C2=A0added=20commands:=20SelectDocumentView,=20Reload?= =?UTF-8?q?ContentTableWithWHEREClause=20=E2=80=A2=20fixed=20typos=20?= =?UTF-8?q?=E2=80=A2=20tried=20to=20queue=20incoming=20commands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPAppController.m | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/SPAppController.m') 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]; -- cgit v1.2.3