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). --- delegate_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'delegate_darwin.go') diff --git a/delegate_darwin.go b/delegate_darwin.go index a8140e2..53eb361 100644 --- a/delegate_darwin.go +++ b/delegate_darwin.go @@ -46,7 +46,7 @@ var appDelegateSels = []selector{ "handling window resize events"}, selector{"buttonClicked:", uintptr(C.appDelegate_buttonClicked), sel_bool_id, "handling button clicks"}, - selector{"applicationShouldTerminate", uintptr(C._appDelegate_applicationShouldTerminate), sel_terminatereply, + selector{"applicationShouldTerminate:", uintptr(C._appDelegate_applicationShouldTerminate), sel_terminatereply_id, "handling Quit menu items (such as from the Dock)/the AppQuit channel"}, } -- cgit v1.2.3