summaryrefslogtreecommitdiff
path: root/listbox.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-17 12:42:00 -0400
committerPietro Gagliardi <[email protected]>2014-05-17 12:42:00 -0400
commitbe56293e9c8fbef647048286bd23a0e5b13caac2 (patch)
tree84be891d893c296e16fe593352ac0379acc24a7f /listbox.go
parentcc74fda9501b867860e9f09cdc86a2fef21adaea (diff)
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.
Diffstat (limited to 'listbox.go')
-rw-r--r--listbox.go2
1 files changed, 0 insertions, 2 deletions
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
}