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'
Well that’s odd. You should definitely file a bug about this. Please post your bug number, just for the record.
Are there any drawbacks with implementing both methods? If not, that seems like your workaround.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"