summaryrefslogtreecommitdiff
path: root/delegate_darwin.go
diff options
context:
space:
mode:
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
}