Fixed: Make all method in CPTextDelegate and CPTextViewDelegate protocol optional.

This commit is contained in:
Martin Carlberg
2018-01-08 13:15:31 +01:00
parent c4cbb631a9
commit 3f062e1c0a
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@
@protocol CPTextDelegate <CPObject>
@optional
- (BOOL)textShouldBeginEditing:(CPText)aTextObject;
- (BOOL)textShouldEndEditing:(CPText)aTextObject;
- (void)textDidBeginEditing:(CPNotification)aNotification;
+1
View File
@@ -43,6 +43,7 @@
@protocol CPTextViewDelegate <CPTextDelegate>
@optional
- (BOOL)textView:(CPTextView)aTextView doCommandBySelector:(SEL)aSelector;
- (BOOL)textView:(CPTextView)aTextView shouldChangeTextInRange:(CPRange)affectedCharRange replacementString:(CPString)replacementString;
- (CPDictionary)textView:(CPTextView)textView shouldChangeTypingAttributes:(CPDictionary)oldTypingAttributes toAttributes:(CPDictionary)newTypingAttributes;