-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with bidirectional bindings in NSTextField #68
Comments
HI, I reported this issue a while ago... I think adding @objc attribute makes the most sense since it allows us to keep it private Regards, |
Ok guys, should be fixed in v3.7.3. AppKit support is kind of still unofficial. Feel free to contribute if you need additional extensions. |
@srdanrasic Unfortunately the changes in v3.7.3 did not fix this issue. I noticed you added the @objc to the class rather than the private function, hence the situation has not changed (selector is still not recognised.) @objc private func textChanged(sender: AnyObject?) {
self.listener?(control?.stringValue ?? "")
} This, however works as intended 👍 |
Oh. Well, v3.7.4 is out :) |
@srdanrasic Great, thank you! 👍 |
I was trying to set a bidirectional binding on a
NSTextField
and I think I have spotted a bug (I am using Xcode 6.3. / Swift 1.2)This is what I have:
When the textfield is changed, Bond attempts to trigger
-[Bond.TextFieldDynamicHelper textChanged:]
but it fails with "unrecognized selector sent to instance". After looking atBond+NSTextField.swift
I noticed thattextChanged
is declared as private:Perhaps adding @objc would be a good idea?
The text was updated successfully, but these errors were encountered: