summaryrefslogtreecommitdiff
path: root/delegate_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-04 17:50:27 -0400
committerPietro Gagliardi <[email protected]>2014-04-04 17:50:27 -0400
commit3a130b756a74c24ea34a1d25a86c96c72da2d80f (patch)
tree23073c0181b915133c044afcb081a33df9187665 /delegate_darwin.go
parent1a7bf4cd8974bc116df17bccd908187a767d7e6e (diff)
Removed objc_new(). The idea is to remove all the objc_* functions that aren't prefixed with C. (except objc_getClass()).
Diffstat (limited to 'delegate_darwin.go')
-rw-r--r--delegate_darwin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/delegate_darwin.go b/delegate_darwin.go
index 7f14d04..8fa8097 100644
--- a/delegate_darwin.go
+++ b/delegate_darwin.go
@@ -64,7 +64,7 @@ func mkAppDelegate() error {
if err != nil {
return fmt.Errorf("error adding NSApplication delegate buttonClicked: method (to handle button clicks): %v", err)
}
- appDelegate = objc_new(objc_getClass(_goAppDelegate))
+ appDelegate = C.objc_msgSend_noargs(objc_getClass(_goAppDelegate), _new)
return nil
}