Radio Buttons not Selecting Properly
Radio Buttons not Selecting Properly
- Subject: Radio Buttons not Selecting Properly
- From: "K. Darcy Otto" <email@hidden>
- Date: Wed, 25 Feb 2009 22:53:56 -0800
I have a window in which I'm swapping views. The mechanism by which
the user indicates the view should be swapped is a series of four
radio buttons (so, it is sort of like having a tab view, except
instead of tabs up the top, there are radio buttons in the view
itself). The radio buttons are in a matrix. The views correspond to
the radio button that should be selected. So, view 0 should have
radio button 0 selected; view 1 should have radio button 1 selected;
and so on.
When view 0 is being displayed, and the user clicks on radio button 1,
view 0 is automatically swapped out for view 1, and radio button 1 is
selected in view 1. The problem is, this only happens the first time
the user clicks on radio button 1. The rest of the time, the view
changes, but the radio button selection does not change.
How do I force the radio button to change each time a new view is
swapped in? The strange thing is, I have used bindings to bind the
radio button that is clicked to a variable, and the variable shows the
right value. The selection doesn't change though, except for the
first time the button is clicked.
Any help would be greatly appreciated.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden