diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-04 19:08:25 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-04 19:08:25 -0400 |
| commit | 461b0cc023f7297e8cb77e0aa2707cf6e4494e87 (patch) | |
| tree | 8a02be66675a8ca4d7e43f6046308036da9832aa /sysdata_darwin.go | |
| parent | ba2c1d6d20c9b9afe67a46120969a05672be76cd (diff) | |
Removed objc_msgSend_rect_bool().
Diffstat (limited to 'sysdata_darwin.go')
| -rw-r--r-- | sysdata_darwin.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go index 1f947f0..427f2f1 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -176,8 +176,8 @@ var classTypes = [nctypes]*classData{ C.objc_msgSend_bool(combobox, _setUsesDataSource, C.BOOL(C.NO)) } else { combobox = objc_alloc(_NSPopUpButton) - combobox = objc_msgSend_rect_bool(combobox, _initWithFramePullsDown, - 0, 0, 100, 100, + combobox = C.objc_msgSend_rect_bool(combobox, _initWithFramePullsDown, + C.int64_t(0), C.int64_t(0), C.int64_t(100), C.int64_t(100), C.BOOL(C.NO)) } addControl(parentWindow, combobox) @@ -455,8 +455,8 @@ func (s *sysData) setWindowSize(width int, height int) error { uitask <- func() { // we need to get the top left point r := C.objc_msgSend_stret_rect_noargs(s.id, _frame) - objc_msgSend_rect_bool(s.id, _setFrameDisplay, - int(r.x), int(r.y), width, height, + C.objc_msgSend_rect_bool(s.id, _setFrameDisplay, + C.int64_t(r.x), C.int64_t(r.y), C.int64_t(width), C.int64_t(height), C.BOOL(C.YES)) // TODO set to NO to prevent subviews from being redrawn before they are resized? ret <- struct{}{} } |
