From 5a5b486b6abd568d80150d36ed85746b445bf2fb Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 4 Apr 2014 19:51:23 -0400 Subject: Removed objc_msgSend_rect(). This also consolidates all initWithFrame: calls into a simple initWithDummyFrame(). --- listbox_darwin.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'listbox_darwin.go') 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 { -- cgit v1.2.3