More uiRadioButtons work.

This commit is contained in:
Pietro Gagliardi 2015-08-22 16:15:11 -04:00
parent cec464a998
commit bcf7916336
1 changed files with 2 additions and 1 deletions

View File

@ -44,8 +44,9 @@ uiRadioButtons *uiNewRadioButtons(void)
prototype:cell
numberOfRows:0
numberOfColumns:0];
// TODO should we allow an initial state of no selection, but not allow the user to select nothing?
// even with this property, none of the radio buttons will be selected initially, which is what we want
[r->matrix setAllowsEmptySelection:NO];
[r->matrix setSelectionByRect:YES];
[r->matrix setIntercellSpacing:NSMakeSize(4, 2)];
[r->matrix setAutorecalculatesCellSize:YES];
[r->matrix setDrawsBackground:NO];