Skip to content

Commit

Permalink
darwin: Fix uiTable checkbox value not calling SetCellValue().
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
szanni committed Aug 27, 2020
1 parent 34d1d0a commit 4b47cb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions darwin/tablecolumn.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ - (id)initWithFrame:(NSRect)r params:(struct textColumnCreateParams *)p
[self->cb setTransparent:NO];
uiDarwinSetControlFont(self->cb, NSRegularControlSize);
[self->cb setTranslatesAutoresizingMaskIntoConstraints:NO];
[self->cb setTarget:self];
[self->cb setAction:@selector(uiprivOnCheckboxAction:)];
[self addSubview:self->cb];

if (self->tf != nil) {
Expand Down

0 comments on commit 4b47cb2

Please sign in to comment.