I have an NSTextField, and I need a button to reset the text of the field. How would I do that? I have been trying this:
NSTextField
[textBox setText:@\"\"]; te
Try this code:
theLabel.text = @"this is some text"; [self.view addSubView:theLabel];
Here, the label is the text field.
If it is OSX and NSTextField then use :
[textBox setStringValue:@""];