diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-17 12:42:00 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-17 12:42:00 -0400 |
| commit | be56293e9c8fbef647048286bd23a0e5b13caac2 (patch) | |
| tree | 84be891d893c296e16fe593352ac0379acc24a7f /listbox_darwin.go | |
| parent | cc74fda9501b867860e9f09cdc86a2fef21adaea (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 'listbox_darwin.go')
| -rw-r--r-- | listbox_darwin.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/listbox_darwin.go b/listbox_darwin.go index 05eeaa9..aa83d5d 100644 --- a/listbox_darwin.go +++ b/listbox_darwin.go @@ -217,12 +217,3 @@ func listboxDelete(listbox C.id, index int) { func listboxLen(listbox C.id) int { return int(C.listboxLen(listboxInScrollView(listbox))) } - -func listboxSelectIndices(id C.id, indices []int) { - listbox := listboxInScrollView(id) - if len(indices) == 0 { - C.listboxDeselectAll(listbox) - return - } - panic("selectListboxIndices() > 0 not yet implemented (TODO)") -} |
