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.

This commit is contained in:
Pietro Gagliardi 2014-03-30 13:25:41 -04:00
parent 8f944c7ec6
commit a1830c8883
1 changed files with 3 additions and 4 deletions

View File

@ -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