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.
This commit is contained in:
parent
07ecf4dd6b
commit
c993c6b8e8
|
@ -261,9 +261,7 @@ func insertListboxBefore(listbox C.id, what string, before int, alternate bool)
|
||||||
insertListboxArrayBefore(array, what, before)
|
insertListboxArrayBefore(array, what, before)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO this is inefficient!
|
// 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
|
||||||
// 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)
|
|
||||||
func selectedListboxIndices(listbox C.id) (list []int) {
|
func selectedListboxIndices(listbox C.id) (list []int) {
|
||||||
var cindices []C.uintptr_t
|
var cindices []C.uintptr_t
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue