From cbcb46597decbd7c8652d0f9485ec8f77bf08cfc Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 6 Oct 2018 23:19:50 +0200 Subject: [PATCH] fixed: syntax errors --- AppKit/CPTextView/CPTextView.j | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 43bd24121..73784aa47 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -51,7 +51,7 @@ - (CPRange)textView:(CPTextView)aTextView willChangeSelectionFromCharacterRange:(CPRange)oldSelectedCharRange toCharacterRange:(CPRange)newSelectedCharRange; - (void)textViewDidChangeSelection:(CPNotification)aNotification; - (void)textViewDidChangeTypingAttributes:(CPNotification)aNotification; -- (CPMenu)textView:(CPTextView)view menu:(CPMenu)menu forEvent:(CPEvent)event atIndex:(unsigned)charIndex +- (CPMenu)textView:(CPTextView)view menu:(CPMenu)menu forEvent:(CPEvent)event atIndex:(unsigned)charIndex; @end @@ -605,7 +605,7 @@ var kDelegateRespondsTo_textShouldBeginEditing if ([_delegate respondsToSelector:@selector(textView:shouldChangeTypingAttributes:toAttributes:)]) _delegateRespondsToSelectorMask |= kDelegateRespondsTo_textView_shouldChangeTypingAttributes_toAttributes; - if ([_delegate respondsToSelector:@selector(textView:menu:forEvent:atIndex:]) + if ([_delegate respondsToSelector:@selector(textView:menu:forEvent:atIndex:)]) _delegateRespondsToSelectorMask |= kDelegateRespondsTo_textView_menu_forEvent_atIndex; if (_superview) @@ -1157,7 +1157,7 @@ Sets the selection to a range of characters in response to user action. var myMenu = [super menuForEvent:anEvent]; if (_delegateRespondsToSelectorMask & kDelegateRespondsTo_textView_menu_forEvent_atIndex) - myMenu = [_delegate textView:self menu:myMenu forEvent:anEventatIndex:_selectionRange.location]); + myMenu = [_delegate textView:self menu:myMenu forEvent:anEvent atIndex:_selectionRange.location]; return myMenu; }