FROM : Brian O'Brien
DATE : Wed Apr 06 19:01:03 2005
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
DATE : Wed Apr 06 19:01:03 2005
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Brian O'Brien | Apr 6, 18:19 | |
| Scott Stevenson | Apr 6, 18:23 | |
| Brian O'Brien | Apr 6, 19:01 | |
| Stephan Ruggiero | Apr 6, 19:03 | |
| Shawn Erickson | Apr 6, 19:14 | |
| Ricky Sharp | Apr 6, 19:18 | |
| Brian O'Brien | Apr 6, 19:18 | |
| Dave Rehring | Apr 6, 19:22 | |
| Hamish Allan | Apr 6, 20:00 | |
| Brian O'Brien | Apr 6, 22:45 | |
| Brian O'Brien | Apr 6, 22:55 | |
| Caleb Strockbine | Apr 6, 23:05 |






Cocoa mail archive

