diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-08 17:25:19 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-08 17:25:19 -0500 |
| commit | 47829df71489eed2d456595ab9ce9748ecaf38d9 (patch) | |
| tree | 730b723ab4029ae5abd960ea87d9e50665cf976f /listbox_darwin.go | |
| parent | ce2645a83cadd2406ada8b0c71b1b53c1c9a61dc (diff) | |
Added the Mac OS X implementation of Combobox/Listbox.Len().
Diffstat (limited to 'listbox_darwin.go')
| -rw-r--r-- | listbox_darwin.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/listbox_darwin.go b/listbox_darwin.go index e663e78..9575af6 100644 --- a/listbox_darwin.go +++ b/listbox_darwin.go @@ -223,6 +223,7 @@ var ( _setHeaderView = sel_getUid("setHeaderView:") _selectedRowIndexes = sel_getUid("selectedRowIndexes") _count = sel_getUid("count") + _numberOfRows = sel_getUid("numberOfRows") ) func makeListbox(parentWindow C.id, alternate bool) C.id { @@ -294,3 +295,7 @@ func deleteListbox(listbox C.id, index int) { array := listboxArray(listbox) deleteListboxArray(array, index) } + +func listboxLen(listbox C.id) int { + return int(C.objc_msgSend_intret_noargs(listboxInScrollView(listbox), _numberOfRows)) +} |
