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

glossywhite

macrumors 65816
Original poster
Feb 28, 2008
1,120
2
I have forgotten how to do this, and it is frustrating - I have a single window with a single view, and I have ONE button within the view. Can someone tell me what code I would use to tell the button to change its title, when clicked?.

Also, do I need to give the button an ID?. Thanks, from a VERY confused person. :D
 

Catfish_Man

macrumors 68030
Sep 13, 2001
2,579
2
Portland, OR
Make an IBOutlet for the button, and an IBAction for it to call when clicked; In the IBAction, call setStringValue with the new text.
 

`lowell`

macrumors newbie
Aug 20, 2009
29
0
San Diego
I have forgotten how to do this

does this help your memory at all?

YzbKS.png


where exactly are you stuck?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.