2

I have 2 radio buttons ( NSMatrix with 2 rows and 1 column) and have defined them in the header file as IBOutlet NSMatrix *temp;

Now when I pick a certain option, I want to disable both these radio button's or at times I want to disable the radiobutton in row 1. Any tips on how I can do this ? I can't seem to find the delgates to do this.

Thanks.

ZionKing
  • 326
  • 1
  • 4
  • 16

1 Answers1

3
// Disable top
[[temp cellAtRow:0 column:0] setEnabled:NO];

// Disable bottom
[[temp cellAtRow:1 column:0] setEnabled:NO];

// Disable both
[temp setEnabled:NO];
Anne
  • 26,765
  • 9
  • 65
  • 71
  • Thanks, Yea I had setEnabled. But it was getting activated only when I clicked on another button which had the IBAction set to trigger this function. Creating a separate IBAction function and hooking up a radio button to this function fixed my issue. Thanks again. – ZionKing Mar 16 '11 at 22:36