• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: setting up radio buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >setting up radio buttons (From: Daniel Child <email@hidden>)

  • Prev by Date: Looks KVC-compliant to me, but Cocoa says it ain't
  • Next by Date: Re: Looks KVC-compliant to me, but Cocoa says it ain't
  • Previous by thread: setting up radio buttons
  • Next by thread: Re: setting up radio buttons
  • Index(es):
    • Date
    • Thread