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). --- objc_darwin.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'objc_darwin.go') diff --git a/objc_darwin.go b/objc_darwin.go index b4b44e8..855dc58 100644 --- a/objc_darwin.go +++ b/objc_darwin.go @@ -71,16 +71,16 @@ const ( sel_bool_id sel_bool sel_void_rect - sel_terminatereply + sel_terminatereply_id nitypes ) var itypes = [nitypes][]C.char{ - sel_void_id: []C.char{'v', '@', ':', '@', 0}, - sel_bool_id: []C.char{'c', '@', ':', '@', 0}, - sel_bool: []C.char{'c', '@', ':', 0}, - sel_void_rect: nil, // see init() below - sel_terminatereply: nil, + sel_void_id: []C.char{'v', '@', ':', '@', 0}, + sel_bool_id: []C.char{'c', '@', ':', '@', 0}, + sel_bool: []C.char{'c', '@', ':', 0}, + sel_void_rect: nil, // see init() below + sel_terminatereply_id: nil, } func init() { @@ -99,8 +99,8 @@ func init() { for _, b := range y { x = append(x, C.char(b)) } - x = append(x, '@', ':', 0) - itypes[sel_terminatereply] = x + x = append(x, '@', ':', '@', 0) + itypes[sel_terminatereply_id] = x } func makeClass(name string, super C.id, sels []selector, desc string) (id C.id, err error) { -- cgit v1.2.3