NSSearchFieldsupports the mechanism of action of the action, so just attach it to the goal / action. For example, suppose the following action is specified in the application deletion:
- (IBAction)searchAnswer:(id)sender;
Interface Builder ctrl- searchAnswer:. -stringValue, , ,
- (IBAction)searchAnswer:(id)sender {
NSLog(@"search answer: %@", [searchField stringValue]);
}
, , / . , , Enter, Sends Whole Search String .
user557219