Here\'s the code:
- (IBAction) charlieInputText:(id)sender { //getting value from text field when entered charlieInputSelf = [sender stringValue];
The Most efficent way to do this is by using this
// set it into an NSString NSString *yourText = yourVariable.text; if([theText length] == 0]) { // Your Code if it is equal to zero } else { // of the field is not empty }