I want to assign the value of a text field to a character array in Xcode. How would I go about doing this?
Thanks.
Thanks.
JimmyFeatures said:I want to assign the value of a text field to a character array in Xcode. How would I go about doing this?
Thanks.
JimmyFeatures said:Basically, I want to assign
char array[255]
to a text input.
IBOutlet NSTextView *textView; // Conect in IB
...
char *array = [[textView stringValue] UTF8String];
JimmyFeatures said:OK. To clear this up.
I am using OBJ-C in cocoa, and would like to assign a text input, which is a text box inside a window (not command line) to a C/C++ style character array.