diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-07 12:46:09 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-07 12:46:09 -0400 |
| commit | 24d40fa12d184ebd595344c5c1775d0175a2f4d1 (patch) | |
| tree | a1ba629b6666dc407cbe8898e986c757ca8528f7 /uitask_darwin.go | |
| parent | f7817f6987f83d84893466ee4f8a99af98ee643f (diff) | |
Fixed AppQuit on Mac OS X (forgot to set the NSApp delegate AND was using the wrong selector).
Diffstat (limited to 'uitask_darwin.go')
| -rw-r--r-- | uitask_darwin.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/uitask_darwin.go b/uitask_darwin.go index d338986..e72443e 100644 --- a/uitask_darwin.go +++ b/uitask_darwin.go @@ -81,6 +81,7 @@ var ( _sharedApplication = sel_getUid("sharedApplication") _setActivationPolicy = sel_getUid("setActivationPolicy:") _activateIgnoringOtherApps = sel_getUid("activateIgnoringOtherApps:") + // _setDelegate in sysdata_darwin.go ) func initCocoa() (NSApp C.id, err error) { @@ -97,6 +98,7 @@ func initCocoa() (NSApp C.id, err error) { if err != nil { return } + C.objc_msgSend_id(NSApp, _setDelegate, appDelegate) err = mkAreaClass() return } |
