| 28 |
28 |
| 29 #import "toolkit.h" |
29 #import "toolkit.h" |
| 30 |
30 |
| 31 @interface ListDelegate : NSObject <NSTableViewDelegate> |
31 @interface ListDelegate : NSObject <NSTableViewDelegate> |
| 32 |
32 |
| |
33 @property (weak) NSTableView *tableview; |
| 33 @property UiObject *obj; |
34 @property UiObject *obj; |
| 34 @property ui_callback onselection; |
35 @property ui_callback onselection; |
| 35 @property void *onselectiondata; |
36 @property void *onselectiondata; |
| 36 @property ui_callback onactivate; |
37 @property ui_callback onactivate; |
| 37 @property void *onactivatedata; |
38 @property void *onactivatedata; |
| 38 |
39 |
| 39 - (id)init:(UiObject*)obj; |
40 - (id)init:(NSTableView*) tableview obj:(UiObject*)obj; |
| 40 |
41 |
| 41 - (void)activateEvent:(id)sender; |
42 - (void)activateEvent:(id)sender; |
| 42 |
43 |
| 43 @end |
44 @end |
| |
45 |
| |
46 UiListSelection ui_tableview_selection(NSTableView *tableview); |