PDA

View Full Version : Using shared User Defaults Controller with NSMatrix




xmax
Mar 23, 2009, 05:22 AM
Hello,
I am making user interface where I need to handle Multiple Matrix containing radio Buttons.
I have bind Selected Item of Matrix with User Defaults controller.
Now I want to make user interface such that it should Enable matrix 2 when radio button of matrix 1 is in ON State. else matrix 2 should be in OFF state.

I had disabled and enabled with check boxes before. but i don't know how to handle matrix ?


Thanks.


xmax.



MrFusion
Mar 23, 2009, 01:27 PM
Hello,
I am making user interface where I need to handle Multiple Matrix containing radio Buttons.
I have bind Selected Item of Matrix with User Defaults controller.
Now I want to make user interface such that it should Enable matrix 2 when radio button of matrix 1 is in ON State. else matrix 2 should be in OFF state.

I had disabled and enabled with check boxes before. but i don't know how to handle matrix ?


Thanks.


xmax.

Try this. Bind the enable or hidden value of the second button to the on/off state of first button.

Or connect the first button to a function in your class, in which you programmatically alter the on/off state of the second button and pass the correct value on to the userdefaultscontroller