diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-01 20:41:30 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-01 20:41:30 -0500 |
| commit | 859c240a2119d799ecae59be67e9ad96e1aa7b92 (patch) | |
| tree | fa66979b3223169068b52889f570670e652fb143 /uitask_darwin.go | |
| parent | 0709351fed0b5fb5871853505e969bf0ccf17495 (diff) | |
Some error message and TODO changes related to the previous commit.
Diffstat (limited to 'uitask_darwin.go')
| -rw-r--r-- | uitask_darwin.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uitask_darwin.go b/uitask_darwin.go index c61ede0..0d0e377 100644 --- a/uitask_darwin.go +++ b/uitask_darwin.go @@ -75,9 +75,10 @@ func initCocoa() (NSApp C.id, err error) { r := C.objc_msgSend_int(NSApp, _setActivationPolicy, 0) // NSApplicationActivationPolicyRegular if C.BOOL(uintptr(unsafe.Pointer(r))) != C.BOOL(C.YES) { - err = fmt.Errorf("error setting NSApplication activation policy (basically identifies our program as a separate program; needed for several things, such as Dock icon, menu, window resizing, etc.) (unknown reason)") + err = fmt.Errorf("error setting NSApplication activation policy (basically identifies our program as a separate program; needed for several things, such as Dock icon, application menu, window resizing, etc.) (unknown reason)") return } + // TODO we need to call [NSApp activateIgnoringOtherApps:YES] here when we are ready to have the program become active (for now I won't) err = mkAppDelegate() return } |
