ui/cocoa/list.m

changeset 965
5d4419042d9b
parent 869
6b7a178cff7c
child 969
7385c26d998d
equal deleted inserted replaced
964:c563220d9aea 965:5d4419042d9b
177 } 177 }
178 } 178 }
179 179
180 ListDataSource *dataSource = [[ListDataSource alloc] init:cols var:var getvalue:getvalue getvaluedata:getvaluedata]; 180 ListDataSource *dataSource = [[ListDataSource alloc] init:cols var:var getvalue:getvalue getvaluedata:getvaluedata];
181 if(model) { 181 if(model) {
182 dataSource.model = ui_model_copy(obj->ctx, model); 182 dataSource.model = model;
183 } 183 }
184 184
185 tableview.dataSource = dataSource; 185 tableview.dataSource = dataSource;
186 [tableview reloadData]; 186 [tableview reloadData];
187 187

mercurial