30 #import "EventData.h" |
30 #import "EventData.h" |
31 #import "Container.h" |
31 #import "Container.h" |
32 #import <objc/runtime.h> |
32 #import <objc/runtime.h> |
33 |
33 |
34 UIWIDGET ui_textarea_create(UiObject *obj, UiTextAreaArgs args) { |
34 UIWIDGET ui_textarea_create(UiObject *obj, UiTextAreaArgs args) { |
35 //NSScrollView *scrollview = [[NSScrollView alloc] initWithFrame:(NSRect){ 0, 0, 40, 40}]; |
35 NSScrollView *scrollview = [[NSScrollView alloc] init]; |
36 NSTextView *textview = [[NSTextView alloc] initWithFrame:(NSRect){ 0, 0, 40, 40}]; |
36 NSTextView *textview = [[NSTextView alloc] init]; |
37 //scrollview.documentView = textview; |
37 scrollview.documentView = textview; |
38 |
38 |
39 UiLayout layout = UI_INIT_LAYOUT(args); |
39 UiLayout layout = UI_INIT_LAYOUT(args); |
40 ui_container_add(obj, textview, &layout, TRUE); |
40 ui_container_add(obj, scrollview, &layout, TRUE); |
41 |
41 |
42 return (__bridge void*)textview; |
42 return (__bridge void*)scrollview; |
43 } |
43 } |