Created
July 29, 2014 22:08
-
-
Save smic/884bf62722f4bf926ba2 to your computer and use it in GitHub Desktop.
Send control value back to controller over binding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NSControl (SMTriggerAction) | |
- (void)triggerAction { | |
[self sendAction:self.action to:self.target]; | |
for (NSValueBinder *binder in [[self _bindingAdaptor] binders]) { | |
[binder performAction:self]; | |
} | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment