Skip navigation.
 
mlNeed help with Radio Buttons...
FROM : Brian O'Brien
DATE : Wed Apr 06 18:19:53 2005

I've managed (without using bindings, because I don't have time to read
a twenty page document
to get a radio button working) to get the value of a radio button due
to a click on one
of the set.  I did this by the [sender selectedTag] method in the
action method.

However there are times when I want to know the value of a radio button
not just when it
has been clicked.  I have tried to set it up the radio button set as
an outlet and then
checking the selectedTag however the variable that I created in my
class is nul

in mycontrolle.h I added:

IBOutlet NSMatrix *myRadioButtons;


then somewere in the program when I wanted the value i
tried

NSLog(@"%@", myRadioButtons);  //  <<---- printed out (null)
[myRadioButtons selectedTag];  // allways returns 0 of course...



TIA
B.

Related mailsAuthorDate
mlNeed help with Radio Buttons... Brian O'Brien Apr 6, 18:19
mlRe: Need help with Radio Buttons... Scott Stevenson Apr 6, 18:23
mlRe: Need help with Radio Buttons... Brian O'Brien Apr 6, 19:01
mlRe: Need help with Radio Buttons... Stephan Ruggiero Apr 6, 19:03
mlRe: Need help with Radio Buttons... Shawn Erickson Apr 6, 19:14
mlRe: Need help with Radio Buttons... Ricky Sharp Apr 6, 19:18
mlRe: Need help with Radio Buttons... Brian O'Brien Apr 6, 19:18
mlRe: Need help with Radio Buttons... Dave Rehring Apr 6, 19:22
mlRe: Need help with Radio Buttons... Hamish Allan Apr 6, 20:00
mlRe: Need help with Radio Buttons... Brian O'Brien Apr 6, 22:45
mlRe: Need help with Radio Buttons... Brian O'Brien Apr 6, 22:55
mlRe: Need help with Radio Buttons... Caleb Strockbine Apr 6, 23:05