Need help with Radio Buttons...
Need help with Radio Buttons...
- Subject: Need help with Radio Buttons...
- From: "Brian O'Brien" <email@hidden>
- Date: Wed, 6 Apr 2005 10:19:53 -0600
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.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden