diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-04 17:50:27 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-04 17:50:27 -0400 |
| commit | 3a130b756a74c24ea34a1d25a86c96c72da2d80f (patch) | |
| tree | 23073c0181b915133c044afcb081a33df9187665 /uitask_darwin.go | |
| parent | 1a7bf4cd8974bc116df17bccd908187a767d7e6e (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 'uitask_darwin.go')
| -rw-r--r-- | uitask_darwin.go | 2 |
1 files changed, 1 insertions, 1 deletions
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( |
