| 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 |