More Swift 3 fun! I have a class that overrides controlTextDidEndEditing as such:
override open func controlTextDidEndEditing(_ obj: Notification) {
}
According to the headers and everything I can see - this should be correct:
extension NSObject {
open func controlTextDidBeginEditing(_ obj: Notification)
open func controlTextDidEndEditing(_ obj: Notification)
open func controlTextDidChange(_ obj: Notification)
}
However I get the warning:
: Instance method 'controlTextDidEndEditing' nearly matches optional requirement 'control(_:textShouldBeginEditing:)' of protocol 'NSControlTextEditingDelegate'