I have a simple core-data entity that has a Boolean attribute called subscribedToNewsletter
. I have designed my UI to represent this field as a radio button group with Yes
/No
as the text values (and obviously YES
/NO
as the backing BOOL values).
I have always considered myself to have excellent google-fu, but for the life of me, I am unable to find any clear documentation on:
- how to bind the selected value of the NSMatrix (or is it the cell?) back to a YES/NO value
- how to bind the textual values (if indeed I do need to; I know there are only ever going to be two values - surely they can be hard-coded in Interface Builder, or not?)
Next up will be how to bind a radio group (with Male/Female
text) to a String field called gender
that has M
and F
as possible values - but I digress.
Any pointers would be very much appreciated. Thanks a lot.