summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-05 08:23:16 -0400
committerPietro Gagliardi <[email protected]>2014-08-05 08:23:16 -0400
commitc1055ae278018d8a82950b89f6d37ffbae77719e (patch)
tree05d9b9862bfece84657d208adea37fa898148c29
parentb46167f1e2bb00dc1dae5b466cd78e7ae817587d (diff)
Resolved Mac app bundle startup issues.
-rw-r--r--redo/uitask_darwin.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/redo/uitask_darwin.m b/redo/uitask_darwin.m
index ed3b9bc..b48d30f 100644
--- a/redo/uitask_darwin.m
+++ b/redo/uitask_darwin.m
@@ -21,6 +21,8 @@ BOOL uiinit(void)
{
appDelegate = [appDelegateClass new];
[NSApplication sharedApplication];
+ // don't check for a NO return; something (launch services?) causes running from application bundles to always return NO when asking to change activation policy, even if the change is to the same activation policy!
+ // see https://github.com/andlabs/ui/issues/6
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
[NSApp activateIgnoringOtherApps:YES]; // TODO rsc does this; finder says NO?
[NSApp setDelegate:appDelegate];