Skip to content

Commit acaa717

Browse files
committed
darwin: Fix uiTable checkbox value not calling SetCellValue().
The SetCellValue() when clicking a checkbox within a uiTable is never called. The UI happiliy updates suggesting the value has been set - which is not actually the case. The checkbox not redrawing with the actual check box value from the model is another related issue, see andlabs#507.
1 parent 34d1d0a commit acaa717

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

darwin/tablecolumn.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ - (id)initWithFrame:(NSRect)r params:(struct textColumnCreateParams *)p
181181
[self->cb setTransparent:NO];
182182
uiDarwinSetControlFont(self->cb, NSRegularControlSize);
183183
[self->cb setTranslatesAutoresizingMaskIntoConstraints:NO];
184+
[self->cb setTarget:self)];
185+
[self->cb setAction:@selector(uiprivOnCheckboxAction:)];
184186
[self addSubview:self->cb];
185187

186188
if (self->tf != nil) {

0 commit comments

Comments
 (0)