From a1830c88837118e19cf8eea312e5938d106e4548 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 30 Mar 2014 13:25:41 -0400 Subject: [PATCH] Fixed Mac OS X Area setAreaSize() not working: I was using the NSWindow setFrame:display: selector instead of sending the two NSView setFrame: and display methods separately. --- sysdata_darwin.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sysdata_darwin.go b/sysdata_darwin.go index b3ee48d..f406095 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -503,10 +503,9 @@ func (s *sysData) setAreaSize(width int, height int) { defer close(ret) uitask <- func() { area := areaInScrollView(s.id) -println(C.GoString(C.object_getClassName(area))) - objc_msgSend_rect_bool(area, _setFrameDisplay, - int(0), int(0), width, height, - C.BOOL(C.YES)) // redraw + objc_msgSend_rect(area, _setFrame, + int(0), int(0), width, height) + C.objc_msgSend_noargs(area, _display) // and redraw ret <- struct{}{} } <-ret