diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-18 10:41:58 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-18 10:41:58 -0400 |
| commit | 570f08a49ce1099cee4feed9ae006b3f0545b7a0 (patch) | |
| tree | 73ac420fd2d427473e62e68ad4ac13cf3db1a9a0 /redo/table_darwin.m | |
| parent | a8f711dfad63c5b1949439ac33ab4a162ab90ded (diff) | |
Implemented Table.Selected()/Select() on Mac OS X. Also more TODOs.
Diffstat (limited to 'redo/table_darwin.m')
| -rw-r--r-- | redo/table_darwin.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/redo/table_darwin.m b/redo/table_darwin.m index e3c2192..5fdac83 100644 --- a/redo/table_darwin.m +++ b/redo/table_darwin.m @@ -173,3 +173,15 @@ struct xsize tablePreferredSize(id control) s.height += (intptr_t) [[t headerView] frame].size.height; return s; } + +intptr_t tableSelected(id table) +{ + return (intptr_t) [toNSTableView(table) selectedRow]; +} + +void tableSelect(id table, intptr_t row) +{ + [toNSTableView(table) deselectAll:table]; + if (row != -1) + [toNSTableView(table) selectRowIndexes:[NSIndexSet indexSetWithIndex:((NSUInteger) row)] byExtendingSelection:NO]; +} |
