summaryrefslogtreecommitdiff
path: root/listbox_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-04 19:51:23 -0400
committerPietro Gagliardi <[email protected]>2014-04-04 19:51:59 -0400
commit5a5b486b6abd568d80150d36ed85746b445bf2fb (patch)
tree33775c2909f96f0e8d04fd62a77a118b46c2df24 /listbox_darwin.go
parentdd4a7b9cbef10d5469aa6660286dcecfde9a6ad2 (diff)
Removed objc_msgSend_rect(). This also consolidates all initWithFrame: calls into a simple initWithDummyFrame().
Diffstat (limited to 'listbox_darwin.go')
-rw-r--r--listbox_darwin.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/listbox_darwin.go b/listbox_darwin.go
index 1040a02..25a040d 100644
--- a/listbox_darwin.go
+++ b/listbox_darwin.go
@@ -193,8 +193,7 @@ var (
func newListboxScrollView(listbox C.id) C.id {
scrollview := objc_alloc(_NSScrollView)
- scrollview = objc_msgSend_rect(scrollview, _initWithFrame,
- 0, 0, 100, 100)
+ scrollview = initWithDummyFrame(scrollview)
C.objc_msgSend_bool(scrollview, _setHasHorizontalScroller, C.BOOL(C.YES))
C.objc_msgSend_bool(scrollview, _setHasVerticalScroller, C.BOOL(C.YES))
C.objc_msgSend_bool(scrollview, _setAutohidesScrollers, C.BOOL(C.YES))
@@ -234,8 +233,7 @@ var (
func makeListbox(parentWindow C.id, alternate bool) C.id {
listbox := objc_alloc(_NSTableView)
- listbox = objc_msgSend_rect(listbox, _initWithFrame,
- 0, 0, 100, 100)
+ listbox = initWithDummyFrame(listbox)
C.objc_msgSend_id(listbox, _addTableColumn, newListboxTableColumn())
multi := C.BOOL(C.NO)
if alternate {