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 /objc_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 'objc_darwin.go')
| -rw-r--r-- | objc_darwin.go | 16 |
1 files changed, 8 insertions, 8 deletions
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) { |
