I have an NSMatrix as 2 radio buttons( 1 col, 2 rows). I need to be able to set one to selected (ON, checked) state. The matrix and both cells have an action which fires when one of the buttons is clicked. The matrix has an outlet, but the cells do not. In the code below, I get the correct tag, but none of the other lines (tried one at a time) have any effect.
Code:
- (IBAction)matrixClick:(id)sender
{
id theCell = [sender selectedCell];
int theTag = [theCell tag];
[[matrixRotor cellAtRow:0 column:0] setState:1];
[matrixRotor selectCellWithTag:1];
[matrixRotor setState:1 atRow:0 column:0];
NSLog(@"Setting RB");
}