Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Monaj

macrumors regular
Original poster
May 24, 2009
193
0
Hi All,

I am trying a sample application in which I have taken following controls:

i. NSMatrix (with 2 elements, serving as radio button)
ii. Button (which when clicked generates action based on radio button selected)

My questions are-

In IB, can we bind each button cell of NSMatrix to a single bool variable, say- firstElementValue, such that when user selects first button cell in NSMatrix, firstElementValue is YES and when user selects second button cell in NSMatrix, firstElementValue is NO.

or

Is there any other effective way to achieve this?

Please suggest.

Thanks,

Monaj
 
Resolved

I resolved it by setting NSNegateBoolean as value transformer for one of the radio button cells :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.