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

This commit is contained in:
Martin Carlberg committed 2018-01-08 13:15:31 +01:00
1 parent c4cbb631a9
commit 3f062e1c0a
2 files changed
+2

No files matched your search

+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;