From 463b34791179a6a5063565c56bfa56d794e1f7e1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 2 Mar 2014 23:36:46 -0500 Subject: [PATCH] Whoops, forgot to define sysData.selectedIndices() and sysData.selectedTexts() for Mac OS X now that I have those written! Adding items is still a no-op... --- sysdata_darwin.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sysdata_darwin.go b/sysdata_darwin.go index 65c935f..4625c44 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -403,13 +403,21 @@ if classTypes[s.ctype].selIndex == nil { return -1 } } func (s *sysData) selectedIndices() []int { - // TODO - return nil + ret := make(chan []int) + defer close(ret) + uitask <- func() { + ret <- classTypes[s.ctype].selIndices(s.id) + } + return <-ret } func (s *sysData) selectedTexts() []string { - // TODO - return nil + ret := make(chan []string) + defer close(ret) + uitask <- func() { + ret <- classTypes[s.ctype].selTexts(s.id) + } + return <-ret } func (s *sysData) setWindowSize(width int, height int) error {