Skip to content

Commit 1641fc5

Browse files
tonyarnoldkzaher
authored andcommitted
Call controlTextDidChange(…) as an optional method
This fixes an exception when the forwarded delegate does not implement this method.
1 parent 4e9af1e commit 1641fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RxCocoa/macOS/NSTextField+Rx.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class RxTextFieldDelegateProxy
4040
let textField: NSTextField = castOrFatalError(notification.object)
4141
let nextValue = textField.stringValue
4242
self.textSubject.on(.next(nextValue))
43-
_forwardToDelegate?.controlTextDidChange(notification)
43+
_forwardToDelegate?.controlTextDidChange?(notification)
4444
}
4545

4646
// MARK: Delegate proxy methods

0 commit comments

Comments
 (0)