From 4b47cb2c5ffcbaaae9c9705ad8d6f53b17f994d6 Mon Sep 17 00:00:00 2001 From: Angelo Haller Date: Thu, 27 Aug 2020 17:22:06 -0500 Subject: [PATCH] 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 #507. --- darwin/tablecolumn.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/darwin/tablecolumn.m b/darwin/tablecolumn.m index 5038cc6bd..64ae803a7 100644 --- a/darwin/tablecolumn.m +++ b/darwin/tablecolumn.m @@ -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) {