summaryrefslogtreecommitdiff
path: root/listbox_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-04 20:34:35 -0400
committerPietro Gagliardi <[email protected]>2014-04-04 20:34:35 -0400
commite35457b9684f23657e12832266bff477eb55a2ad (patch)
tree2a16c213dd8d88ef4e0e14e481ceb4f2dcfdc80b /listbox_darwin.go
parent5a5b486b6abd568d80150d36ed85746b445bf2fb (diff)
Removed objc_alloc(). This should be all of them. Now to redo how classes are handled...
Diffstat (limited to 'listbox_darwin.go')
-rw-r--r--listbox_darwin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/listbox_darwin.go b/listbox_darwin.go
index 25a040d..da2a0af 100644
--- a/listbox_darwin.go
+++ b/listbox_darwin.go
@@ -165,7 +165,7 @@ var (
)
func newListboxTableColumn() C.id {
- column := objc_alloc(_NSTableColumn)
+ column := C.objc_msgSend_noargs(_NSTableColumn, _alloc)
column = C.objc_msgSend_id(column, _initWithIdentifier, listboxItemKey)
C.objc_msgSend_bool(column, _setEditable, C.BOOL(C.NO))
// TODO other properties?
@@ -192,7 +192,7 @@ var (
)
func newListboxScrollView(listbox C.id) C.id {
- scrollview := objc_alloc(_NSScrollView)
+ scrollview := C.objc_msgSend_noargs(_NSScrollView, _alloc)
scrollview = initWithDummyFrame(scrollview)
C.objc_msgSend_bool(scrollview, _setHasHorizontalScroller, C.BOOL(C.YES))
C.objc_msgSend_bool(scrollview, _setHasVerticalScroller, C.BOOL(C.YES))
@@ -232,7 +232,7 @@ var (
)
func makeListbox(parentWindow C.id, alternate bool) C.id {
- listbox := objc_alloc(_NSTableView)
+ listbox := C.objc_msgSend_noargs(_NSTableView, _alloc)
listbox = initWithDummyFrame(listbox)
C.objc_msgSend_id(listbox, _addTableColumn, newListboxTableColumn())
multi := C.BOOL(C.NO)