mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 10:20:59 +00:00
Fixed: Check if the correct delegate method is implemented before calling it
This commit is contained in:
1 parent
679acfb239
commit
1ee9a3f279
1 file changed
+1
-1
@@ -2225,7 +2225,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
- (CPDictionary)_sendDelegateShouldChangeTypingAttributes:(CPDictionary)typingAttributes toAttributes:(CPDictionary)attributes
|
||||
{
|
||||
if (!(_delegateRespondsToSelectorMask & kDelegateRespondsTo_textView_doCommandBySelector))
|
||||
if (!(_delegateRespondsToSelectorMask & kDelegateRespondsTo_textView_shouldChangeTypingAttributes_toAttributes))
|
||||
return [CPDictionary dictionary];
|
||||
|
||||
return [_delegate textView:self shouldChangeTypingAttributes:typingAttributes toAttributes:attributes];
|
||||
|
||||
Reference in new issue
Block a user