Trip
Registered
I'm trying to do something somewhat like this:
Basically what's going on here is the user is going to push a button, and then the program will take a NSTextField (textInput in this case) and take the text that's already in the field and add 9 onto it. But I don't know how to do that! Can anybody help me?!
e.x.: the NSTextField says: "We have..." and then a user pushes a button and I want the NSTextField to add "9" onto the current text and state: "We have...9". Get it? HELP!
- (IBAction)button9Pressedid)sender
{
[textInput setFloatValue:textInput floatValue"+9"];
}
Basically what's going on here is the user is going to push a button, and then the program will take a NSTextField (textInput in this case) and take the text that's already in the field and add 9 onto it. But I don't know how to do that! Can anybody help me?!
e.x.: the NSTextField says: "We have..." and then a user pushes a button and I want the NSTextField to add "9" onto the current text and state: "We have...9". Get it? HELP!