NSMatrix simple question

I am trying to use an example application in which I took the following controls:

I am. NSMatrix (with two elements acting as a switch)

II. Button (which, when pressed, generates an action based on the selected radio button)

My questions -

In IB, we can bind each NSMatrix button cell for one bool variable, say- firstElementValue, so when the user selects the first button cell in NSMatrix, firstElementValue YES and when the user selects the second button cell in NSMatrix, firstElementValue NO.

or

Is there any other effective way to achieve this?

Please offer.

Thanks,

Miraaj

0
source share
1 answer

I solved this by setting NSNegateBoolean as a value converter for one of the switch cells :)

+1
source

Source: https://habr.com/ru/post/1338402/


All Articles