I made a Cocoa program that lets the user enter their name in NSTextField. When the user presses a button, another textbox is supposed to say Hello to them. This is the code I tried to use.
NSString *myString = [textField stringValue];
[textView setString: @"Hello " myString];
This does not work. How can it be fixed?