From 0333f799d96fa53d8320e714a1449baf66fa31c7 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 3 Mar 2014 13:58:20 -0500 Subject: [PATCH] Added a Listbox preferredSize test window to the main test program, as it appears I'm going to have to change how sysData.preferredSize() works on Mac OS X to acommodate NSTableView, NSScrollView, and NSProgressIndicator... --- test/main.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/main.go b/test/main.go index 1984e58..1aa4ac2 100644 --- a/test/main.go +++ b/test/main.go @@ -6,6 +6,13 @@ import ( . ".." ) +func listboxPreferredSizeTest() (*Window, error) { + lb := NewListbox(false, "xxxxx", "y", "zzz") + g := NewGrid(1, lb) + w := NewWindow("Listbox Preferred Size Test", 300, 300) + return w, w.Open(g) +} + func gridWindow() (*Window, error) { w := NewWindow("Grid Test", 400, 400) b00 := NewButton("0,0") @@ -73,6 +80,10 @@ func myMain() { if err != nil { panic(err) } + _, err = listboxPreferredSizeTest() + if err != nil { + panic(err) + } mainloop: for {