I have a simple prefs pane in my AppleScriptObjC project that contains an NSMatrix of four radio buttons. I have bound each button cell value to an item in the user defaults and I expected that when the radio buttons were clicked on that the four items in the user defaults would take on the value of the radio buttons. This does not happen.
On start up the app registers the four user defaults as
My thinking was as follows. As each cell has a boolean value and the user default items were also boolean values it would be simply a matter of binding them. Obviously I was incorrect.
I can understand binding to selected index or selected tag where there is a single variable having a different value depending on the selected button but fail to see how I could use these where I have four independent variables each dependant on the state of one of the buttons
Perhaps I need to look at my data structures again but I really thought it would be simple to achieve these bindings.
That would appear to be the case which I find really odd. The scenario I have described must occur often and is an ideal case for radio buttons. I will have a search on the net to see if I can find some other references.
Yes you are right, I will stop railing against the flow and re-write that section to accommodate binding to the selected index of the matrix. I’m getting too old for this game, I want everything to be the way I want it