summaryrefslogtreecommitdiff
path: root/sysdata_darwin.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 /sysdata_darwin.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 'sysdata_darwin.go')
-rw-r--r--sysdata_darwin.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go
index 8da134a..720ce9c 100644
--- a/sysdata_darwin.go
+++ b/sysdata_darwin.go
@@ -33,7 +33,6 @@ type classData struct {
delete func(id C.id, index int)
len func(id C.id) int
selectIndex func(id C.id, index int, alternate bool)
- selectIndices func(id C.id, indices []int)
}
func addControl(parentWindow C.id, control C.id) {
@@ -183,7 +182,6 @@ var classTypes = [nctypes]*classData{
selTexts: listboxSelectedTexts,
delete: listboxDelete,
len: listboxLen,
- selectIndices: listboxSelectIndices,
},
c_progressbar: &classData{
make: func(parentWindow C.id, alternate bool, s *sysData) C.id {
@@ -419,13 +417,3 @@ func (s *sysData) selectIndex(index int) {
}
<-ret
}
-
-func (s *sysData) selectIndices(indices []int) {
- ret := make(chan struct{})
- defer close(ret)
- uitask <- func() {
- classTypes[s.ctype].selectIndices(s.id, indices)
- ret <- struct{}{}
- }
- <-ret
-}