I have set up a NSTextfield object and NSButton object and placed both of them on the application window using Interface Builder. I then connected the text field to text00 and the button to setText:
here is my code:
and
what i am trying to do is, have the text field display an X when the button is pushed. but, when i run the program in the simulator in IB and push the button, nothing happens. can anybody help me out? all input is appreciated. Thanks.
here is my code:
Code:
@interface TicTacToeController : NSObject {
IBOutlet NSTextField *text00;
}
- (IBAction)setText: (id)sender;
and
Code:
@implementation TicTacToeController
- (IBAction)setText: (id)sender {
[text00 setStringValue:@"X"];
}
what i am trying to do is, have the text field display an X when the button is pushed. but, when i run the program in the simulator in IB and push the button, nothing happens. can anybody help me out? all input is appreciated. Thanks.