ui/cocoa/list.m

changeset 1178
2889dd61cfb3
parent 1163
a32411b88442
equal deleted inserted replaced
1177:e5e5c1779294 1178:2889dd61cfb3
213 /* ------ common functions ------ */ 213 /* ------ common functions ------ */
214 214
215 void ui_tableview_update(UiList *list, int i) { 215 void ui_tableview_update(UiList *list, int i) {
216 NSTableView *tableview = (__bridge NSTableView*)list->obj; 216 NSTableView *tableview = (__bridge NSTableView*)list->obj;
217 if(i < 0) { 217 if(i < 0) {
218 [tableview deselectAll: tableview];
218 [tableview reloadData]; 219 [tableview reloadData];
219 } else { 220 } else {
220 [tableview reloadData]; // TODO: optimize 221 [tableview reloadData]; // TODO: optimize
221 } 222 }
222 } 223 }

mercurial