• 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: Need help with Radio Buttons...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with Radio Buttons...


  • Subject: Re: Need help with Radio Buttons...
  • From: "Brian O'Brien" <email@hidden>
  • Date: Wed, 6 Apr 2005 11:01:03 -0600


On Apr 6, 2005, at 10:23 AM, Scott Stevenson wrote:


On Apr 6, 2005, at 9:19 AM, Brian O'Brien wrote:

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...

Did you connect the outlet in Interface Builder?

Yes...


If so, make sure you do this after the nib has loaded.


Don't know what you mean...


- Scott

--
http://treehouseideas.com/
http://theocacao.com/ [blog]

_______________________________________________
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


_______________________________________________ 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
  • Follow-Ups:
    • Re: Need help with Radio Buttons...
      • From: Ricky Sharp <email@hidden>
    • Re: Need help with Radio Buttons...
      • From: Shawn Erickson <email@hidden>
References: 
 >Need help with Radio Buttons... (From: "Brian O'Brien" <email@hidden>)
 >Re: Need help with Radio Buttons... (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: NSCalendarDate, NSTimer - Daylight Saving Time (DST) problem is tricky...
  • Next by Date: Porting to Win32
  • Previous by thread: Re: Need help with Radio Buttons...
  • Next by thread: Re: Need help with Radio Buttons...
  • Index(es):
    • Date
    • Thread