diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-30 13:25:41 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-30 13:25:41 -0400 |
| commit | a1830c88837118e19cf8eea312e5938d106e4548 (patch) | |
| tree | a510223b9e3cc48fc28a33b2b7196b28d70a55f5 /sysdata_darwin.go | |
| parent | 8f944c7ec6ba0efaa6dd649934bc2badaef5ab22 (diff) | |
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.
Diffstat (limited to 'sysdata_darwin.go')
| -rw-r--r-- | sysdata_darwin.go | 7 |
1 files 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 |
