From 24d40fa12d184ebd595344c5c1775d0175a2f4d1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 7 Apr 2014 12:46:09 -0400 Subject: Fixed AppQuit on Mac OS X (forgot to set the NSApp delegate AND was using the wrong selector). --- uitask_darwin.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'uitask_darwin.go') 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 } -- cgit v1.2.3