summaryrefslogtreecommitdiff
path: root/listbox_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-03 15:52:39 -0500
committerPietro Gagliardi <[email protected]>2014-03-03 15:52:39 -0500
commitb2e49b3698a35c4cf2924bc08d1d19541c50e858 (patch)
treeb41115a561e90cff9c4e5a287cf90c0ce96eec5c /listbox_darwin.go
parent11d4f96e7702dda27e805eeedda45aedc588aec5 (diff)
Split out the code to add a Control to a Mac OS X Window into its own function.
Diffstat (limited to 'listbox_darwin.go')
-rw-r--r--listbox_darwin.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/listbox_darwin.go b/listbox_darwin.go
index 6f81f5f..e663e78 100644
--- a/listbox_darwin.go
+++ b/listbox_darwin.go
@@ -239,8 +239,7 @@ func makeListbox(parentWindow C.id, alternate bool) C.id {
C.objc_msgSend_id(listbox, _setHeaderView, C.nilid)
// TODO others?
listbox = newListboxScrollView(listbox)
- windowView := C.objc_msgSend_noargs(parentWindow, _contentView)
- C.objc_msgSend_id(windowView, _addSubview, listbox)
+ addControl(parentWindow, listbox)
return listbox
}