Open anoopvm86 opened 6 years ago
I think we need to expand the contracts for this.
AppKit bindings take a property param so you could do that, e.g. the value property in this case:
[self.textField bind: NSValueBinding
toObject:self.objectController
withKeyPath:@"selection.firstName"
options:nil];
NSValueBinding
is just a string constant of "value"
.
Then you also wouldn't need as many UIControl extensions.
What if i need to bind other properties on a UIControl?