From 3a130b756a74c24ea34a1d25a86c96c72da2d80f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 4 Apr 2014 17:50:27 -0400 Subject: Removed objc_new(). The idea is to remove all the objc_* functions that aren't prefixed with C. (except objc_getClass()). --- 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 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 } -- cgit v1.2.3