diff options
| -rw-r--r-- | listbox_darwin.go | 4 |
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 |
