Re: setting up radio buttons
Re: setting up radio buttons
- Subject: Re: setting up radio buttons
- From: Fritz Anderson <email@hidden>
- Date: Wed, 19 Sep 2007 15:44:21 -0500
On Sep 19, 2007, at 3:29 PM, Daniel Child wrote:
Hi All,
I am trying to set up a series of radio buttons. I have used
matrices before, and they worked fine, but for some reason, I can't
find any examples on how to get radio buttons to work.
...
Obviously the titles of the second and third buttons are not
recognized, and the state is 1 for Tab no matter what and 0 for the
others. My code is really a guess since I can't find documentation
or examples.
int buttonState; // the radio button cell selected
NSString *radButtonTitle; // the title of the radio button
selected
buttonState = [fieldDelimRadioButton state];
NSLog(@"The cell is %i\n", buttonState);
radButtonTitle = [fieldDelimRadioButton title];
NSLog(@"Cell title is %@\n", radButtonTitle);
[Reports the title of fieldDelimRadioButton as "Tab". Reports state as
1 or 0, depending on whether the Tab button is selected.]
This would be the correct behavior if fieldDelimRadioButton were the
Tab button (or cell) in every case.
You don't say how fieldDelimRadioButton is set. What happens if you
set it to [yourMatrix selectedCell]?
— F
_______________________________________________
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