summaryrefslogtreecommitdiff
path: root/listbox_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 /listbox_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 'listbox_darwin.go')
-rw-r--r--listbox_darwin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/listbox_darwin.go b/listbox_darwin.go
index acb68df..19e8523 100644
--- a/listbox_darwin.go
+++ b/listbox_darwin.go
@@ -85,7 +85,7 @@ var (
)
func newListboxArray() C.id {
- array := objc_new(_NSArrayController)
+ array := C.objc_msgSend_noargs(_NSArrayController, _new)
C.objc_msgSend_bool(array, _setAutomaticallyRearrangesObjects, C.BOOL(C.NO))
return array
}