diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-04 19:51:23 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-04 19:51:59 -0400 |
| commit | 5a5b486b6abd568d80150d36ed85746b445bf2fb (patch) | |
| tree | 33775c2909f96f0e8d04fd62a77a118b46c2df24 /area_darwin.go | |
| parent | dd4a7b9cbef10d5469aa6660286dcecfde9a6ad2 (diff) | |
Removed objc_msgSend_rect(). This also consolidates all initWithFrame: calls into a simple initWithDummyFrame().
Diffstat (limited to 'area_darwin.go')
| -rw-r--r-- | area_darwin.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/area_darwin.go b/area_darwin.go index a0223e5..36156e9 100644 --- a/area_darwin.go +++ b/area_darwin.go @@ -278,8 +278,7 @@ func areaView_flagsChanged(self C.id, sel C.SEL, e C.id) { func newAreaScrollView(area 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)) @@ -293,8 +292,7 @@ func areaInScrollView(scrollview C.id) C.id { func makeArea(parentWindow C.id, alternate bool) C.id { area := objc_alloc(_goArea) - area = objc_msgSend_rect(area, _initWithFrame, - 0, 0, 100, 100) + area = initWithDummyFrame(area) // TODO others? area = newAreaScrollView(area) addControl(parentWindow, area) |
