SimpleTwoWayBindingIOS
SimpleTwoWayBindingIOS copied to clipboard
What if i need to bind other properties on a UIControl?
What if i need to bind other properties on a UIControl?
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.