Resolved Mac app bundle startup issues.
This commit is contained in:
parent
b46167f1e2
commit
c1055ae278
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue