Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

joaop

macrumors newbie
Original poster
Nov 29, 2010
15
0
I want to detect which button is selected without the user pressing any button, is there a way to do it? Then, when the user pressed the button I want to change a Text Field text, which I also don't know how to do exactly. Thanks in advance.
 
With all the respect I don't see how this can help me. If it is because of :apple:'s documentation, I already make a search on it and still can't find out how to do what I want to.
 
Patrick has a good point. I would recommend starting with the tutorials. Apple has put a couple in the developer section, and there's a few books on the subject in your local bookstore.
 
I don't understand, for text fields we can easily detects if the text was changed (without any button), and for radio buttons no. That's weird, I'll continue my research if I find anything important I'll keep you guys updated here, maybe I can help other folks.
 
OMG I made some test and then I figured out how to do it, since I was making 1 IBAction method to detect which check box was pressed, in interface builder I linked it up with the entire NSMatrix, but since each button is one button the correct code needs one IBAction per radio button, the rest was easy. :) Thank you guys for your help.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.