I have a small problem right now. I want to execute a method when the Enter key is pressed in a NSTextField. The user should be able to enter his data and a calculation meth
Best way to do that is to bind the NSTextField value with NSString property.
For Example,define a method:
(void)setTextFieldString:(NSString *)addressString {}
add bindings:
[textField bind:@"value" toObject:self withKeyPath:@"self.textFieldString" options:nil];
Enter any text and hit the return key, setTextFieldString will be called.