5 Replies
      Latest reply: Sep 14, 2016 2:57 AM by eskimo RSS
      alex_kac Level 1 Level 1 (15 points)

        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'