ui/cocoa/list.m

changeset 1180
9f3b4129631f
parent 1178
2889dd61cfb3
equal deleted inserted replaced
1179:2f4c73ff962f 1180:9f3b4129631f
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