* cleanup

This commit is contained in:
Reinhard Pointner 2015-11-16 07:48:46 +00:00
parent 3af7e217a0
commit 9c05de570b
1 changed files with 26 additions and 30 deletions

View File

@ -52,10 +52,7 @@ public class MacAppUtilities {
final SecondaryLoop secondaryLoop = eventQueue.createSecondaryLoop();
// WARNING: dispatch_sync seems to work on most Mac always causes a deadlock and freezes the application on others (in particular MBP with 2 graphics chips)
dispatch_async(new Runnable() {
@Override
public void run() {
dispatch_async(() -> {
Pointer pool = createAutoreleasePool();
Proxy peer = objc().sendProxy("NSOpenPanel", "openPanel");
peer.send("retain");
@ -85,7 +82,6 @@ public class MacAppUtilities {
drainAutoreleasePool(pool);
secondaryLoop.exit();
}
});
// Enter the loop to block the current event handler, but leave UI responsive