From be56293e9c8fbef647048286bd23a0e5b13caac2 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 17 May 2014 12:42:00 -0400 Subject: Found a method in NSArrayController via Stack Overflow which lets me suppress selection-changing behavior on NSTableView inserts; use that on Listbox in Mac OS X. This means sysData.selectIndices() and its Mac OS X implementation can (and has) gone away, clearing TODOs on Windows and Unix by extension. --- listbox.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'listbox.go') diff --git a/listbox.go b/listbox.go index 7b1a399..8245a7b 100644 --- a/listbox.go +++ b/listbox.go @@ -146,8 +146,6 @@ func (l *Listbox) make(window *sysData) (err error) { for _, s := range l.initItems { l.sysData.append(s) } - // some platforms automatically select an item; undo that - l.sysData.selectIndices(nil) l.created = true return nil } -- cgit v1.2.3