summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-28 23:17:53 -0400
committerPietro Gagliardi <[email protected]>2014-04-28 23:17:53 -0400
commitc993c6b8e8ce63a098d56f88b22060b1ea5a9373 (patch)
tree07dc178b6fb105a5e6fe4654e998760f4ac33bf5
parent07ecf4dd6b4926bf8d2cba2d80260fa2a71901c7 (diff)
Changed a TODO in listbox_darwin.go that, when my Mac OS X setup chooses to cooperate, will let me make the inefficient code in question efficient.
-rw-r--r--listbox_darwin.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/listbox_darwin.go b/listbox_darwin.go
index 7d10a5f..5a1042d 100644
--- a/listbox_darwin.go
+++ b/listbox_darwin.go
@@ -261,9 +261,7 @@ func insertListboxBefore(listbox C.id, what string, before int, alternate bool)
insertListboxArrayBefore(array, what, before)
}
-// TODO this is inefficient!
-// C.NSIndexSetEntries() makes two arrays of size count: one NSUInteger array and one C.uintptr_t array for returning; this makes a third of type []int for using
-// if only NSUInteger was usable (see bleh_darwin.m)
+// TODO change to use [indices firstIndex] and [indices indexGreaterThanIndex:], as suggested http://stackoverflow.com/questions/3773180/how-to-get-indexes-from-nsindexset-into-an-nsarray-in-cocoa
func selectedListboxIndices(listbox C.id) (list []int) {
var cindices []C.uintptr_t