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()). --- uitask_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uitask_darwin.go') diff --git a/uitask_darwin.go b/uitask_darwin.go index 2d13b6e..fa2aa75 100644 --- a/uitask_darwin.go +++ b/uitask_darwin.go @@ -41,7 +41,7 @@ func ui(main func()) error { go func() { for f := range uitask { // we need to make an NSAutoreleasePool, otherwise we get leak warnings on stderr - pool := objc_new(_NSAutoreleasePool) + pool := C.objc_msgSend_noargs(_NSAutoreleasePool, _new) fp := C.objc_msgSend_ptr(_NSValue, _valueWithPointer, unsafe.Pointer(&f)) C.objc_msgSend_sel_id_bool( -- cgit v1.2.3