ui/cocoa/text.m

changeset 1177
e5e5c1779294
parent 1173
ce0e443174d7
equal deleted inserted replaced
1176:87a906a990e3 1177:e5e5c1779294
71 text->length = ui_textarea_length; 71 text->length = ui_textarea_length;
72 text->remove = ui_textarea_remove; 72 text->remove = ui_textarea_remove;
73 } 73 }
74 74
75 if(args->onchange || args->ontextchanged || args->onchange_action || args->ontextchanged_action) { 75 if(args->onchange || args->ontextchanged || args->onchange_action || args->ontextchanged_action) {
76 76 TextAreaDelegate * tad = [[TextAreaDelegate alloc] init:obj var:var args:args];
77 textview.delegate = tad;
78 objc_setAssociatedObject(textview, "delegate", tad, OBJC_ASSOCIATION_RETAIN);
77 } 79 }
78 80
79 return (__bridge void*)scrollview; 81 return (__bridge void*)scrollview;
80 } 82 }
81 83

mercurial