I am pretty new to the development of Cocoa and Objective-C so your help with this very easy problem will be greatly appreciated.

I have a little app that I am working on to learn that basically takes the value out of a UITextField when a button is clicked and does something with it. Say display it on screen. Told you it would be easy. However, when I try to get the value or text from the text box it doesn't come back with anything. The examples that Apple put out won't compile for me and I can not figure out what is going on.

I was basically trying the following:

NSString *theString = textBox1.text;


Can you please help me out.
Thanks