From c1fbe6996a29bc05a5f8889c138f2bf3895de253 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sun, 22 Feb 2015 10:12:28 +1100 Subject: Implement additional methods from the NSTextInputClient protocol so that more features of the IME work. attributedSubstringForProposedRange:actualRange: and characterIndexForPoint: now have full implementations. This required using UTF-16 document indexes in many places as that is what Cocoa wants. Tentative undo is used for the composition text instead of turning off undo as that is safer and similar to IME code on other platforms. --- cocoa/ScintillaView.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'cocoa/ScintillaView.h') diff --git a/cocoa/ScintillaView.h b/cocoa/ScintillaView.h index 102bf3b60..e328646a5 100644 --- a/cocoa/ScintillaView.h +++ b/cocoa/ScintillaView.h @@ -79,12 +79,10 @@ extern NSString *const SCIUpdateUINotification; // Set when we are in composition mode and partial input is displayed. NSRange mMarkedTextRange; - BOOL undoCollectionWasActive; } @property (nonatomic, assign) ScintillaView* owner; -- (void) removeMarkedText; - (void) setCursor: (int) cursor; - (BOOL) canUndo; -- cgit v1.2.3