ui/cocoa/list.m

changeset 713
f279d3cf2bf5
parent 712
9693f447a0c7
child 714
3905f542e150
equal deleted inserted replaced
712:9693f447a0c7 713:f279d3cf2bf5
44 44
45 NSTableView *tableview = [[NSTableView alloc] init]; 45 NSTableView *tableview = [[NSTableView alloc] init];
46 tableview.autoresizingMask = NSViewWidthSizable; 46 tableview.autoresizingMask = NSViewWidthSizable;
47 tableview.headerView = nil; 47 tableview.headerView = nil;
48 48
49 if(args->multiselection) {
50 tableview.allowsMultipleSelection = YES;
51 }
52
49 scrollview.documentView = tableview; 53 scrollview.documentView = tableview;
50 54
51 UiLayout layout = UI_INIT_LAYOUT(args); 55 UiLayout layout = UI_INIT_LAYOUT(args);
52 ui_container_add(obj, scrollview, &layout, TRUE); 56 ui_container_add(obj, scrollview, &layout, TRUE);
53 57

mercurial