I am starting a cocoa objective-c application (My first). What I want to achieve is this:
I have a textbox, I want to get the value of the textbox once a button is clicked, and display it in a different textbox.
I have created an object, and specified actions for the button, and for the "inputfield". I set the "outputfield" as an outlet.
If I use this code for the button action:
It outputs the string defined. Well I want it to output the string in "inputfield" to the "outputfield" with the string "Number:" infront of it.
So, if I type "1234" in inputfield I want it to display "Number: 1234" in the outputfield.
I hope this is understandable.
I have a textbox, I want to get the value of the textbox once a button is clicked, and display it in a different textbox.
I have created an object, and specified actions for the button, and for the "inputfield". I set the "outputfield" as an outlet.
If I use this code for the button action:
Code:
[outputfield setStringValue:@"This will be outputted"];
It outputs the string defined. Well I want it to output the string in "inputfield" to the "outputfield" with the string "Number:" infront of it.
So, if I type "1234" in inputfield I want it to display "Number: 1234" in the outputfield.
I hope this is understandable.