aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
AgeCommit message (Collapse)AuthorFilesLines
2016-11-19Moved @private sections from header into implementation.Neil Hodgson1-4/+40
Hid properties and methods which are for internal use.
2016-11-18Remove Scintilla namespace and ScintillaCocoa declaration from ScintillaView.hNeil Hodgson1-3/+12
2016-11-11Make IME indicator visible in single phase drawing mode.Neil1-6/+16
2016-11-11Bug [#1881]. Fix IME bug where selectedRange wasn't implementing correctly.Neil1-4/+26
Also return nil from attributedSubstringForProposedRange for ranges outside document as this is specified behaviour.
2016-11-05Support for NSAccessibility protocol added sufficient for the VoiceOverNeil Hodgson1-0/+231
screen reader.
2016-10-18validAttributesForMarkedText is specified to not return NULL so return anNeil Hodgson1-1/+1
empty array instead. Fixes clang analyser warning.
2015-11-20Remove line end whitespace.Neil1-6/+6
2015-10-27Ensure correct propagation of viewWillDraw even after owner deleted.Neil Hodgson1-1/+3
From Chinh Nguyen.
2015-10-24When deallocating ScintillaView, null out the reference to it from ↵Neil Hodgson1-1/+10
SCIContentView since responsive scrolling causes callbacks after the deallocation. Also remove the scrollview to try to finalize it although it still lives for a short period.
2015-09-29Mark unused parameters in Objective-C methods with a pragma.Neil Hodgson1-0/+5
2015-06-25Bug [#1740]. Cancel autocompletion and calltip when window moved.Neil Hodgson1-0/+12
2015-03-11Update drag and drop to use current APIs instead of deprecated APIs.Neil Hodgson1-24/+39
2015-02-22Implement additional methods from the NSTextInputClient protocol so that moreNeil Hodgson1-110/+131
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.
2015-02-16Fix bugs caused by deleting text with undo collection off when entering IME ↵Neil Hodgson1-14/+40
composition mode. This deleted text isn't in the undo history and it isn't in the document so can never be recovered so makes it impossible to correctly perform undo. Add logging for unexpected situations and throw an exception when undo can't be performed. Ensure empty marked text range is always in canonical (NSNotFound,0) form.
2015-02-14Fix unused parameter warnings. Remove code that is never executed.Neil Hodgson1-2/+10
2015-02-14Fix warnings for suspicious type conversions and not fully bracketed ↵Neil Hodgson1-18/+18
initializers,
2015-02-14Fix 64->32 bit conversion warnings.Neil Hodgson1-13/+13
2015-02-14Fix doc comments.Neil Hodgson1-1/+1
2014-12-07Replace calls to deprecated methods with their current equivalents.Neil Hodgson1-9/+3
2014-07-15Switch from tracking rectangle to tracking area. This is the more recent ↵Neil Hodgson1-10/+22
Cocoa API and allows detection of mouse movement when the view does not have the focus which is needed for dwell events.
2014-07-10Fix the insertText: method on ScintillaView to accept NSAttributedString as ↵Neil Hodgson1-2/+5
well as NSString, since insertText: is from the NSResponder superclass where it is defined to accept both.
2014-05-02Type cast to make previous change compile on Cocoa.Neil Hodgson1-1/+2
2014-03-28Made indentation consistent.Neil Hodgson1-4/+4
2014-03-27Surround 10.9-specific calls with version checks to ensure builds on old SDKs.nyamatongwe1-0/+2
2014-03-27Improve scrolling by performing styling in methods called before drawing ↵Neil Hodgson1-0/+31
instead of inside drawing which then caused the drawing to be abandoned, and black blocks to appear on-screen. Discard responsive scrolling overdraw when that overdrawn content is invalid. Style just the visible area instead of the whole document when styling changes run beyond painting area.
2014-03-26Indentation use tab.Neil Hodgson1-1/+1
2014-03-26Refactor range deletion into a method on ScintillaView.Neil Hodgson1-19/+17
For removeMarkedText, use range deletion instead of setting the selection and inserting an empty string as this has fewer side effects and should avoid crashes when an autocompletion list is active.
2013-12-15Format normalization - whitespace and braces made consistent.Neil1-46/+46
Parameter names added to method declarations.
2013-11-24Disable scroll wheel magnification by default since it causes visual garbage toNeil Hodgson1-0/+5
appear on OS X 10.9 when scrolling horizontally on a retina display.
2013-11-17Fix problem where cursor didn’t change over margin after showing a dialog.Neil Hodgson1-0/+7
2013-11-11Add @2x images for cursors and info bar to match retina displays.Neil Hodgson1-2/+2
From Mike Lischke.
2013-10-30Bug [#1542]. Margin click focus handling on Cocoa.nyamatongwe1-0/+2
2013-10-14To follow naming conventions InnerView was renamed to SCIContentView andnyamatongwe1-8/+8
MarginView was renamed to SCIMarginView.
2013-10-06Allow subclassing InnerView.nyamatongwe1-1/+12
2013-09-30Removed command: method from ScintillaNotificationProtocol as all events can ↵nyamatongwe1-21/+2
now be received through the notification: method.
2013-09-18Reimplement notifications from ScintillaCocoa to ScintillaView as a delegate ↵nyamatongwe1-72/+68
relationship using ScintillaNotificationProtocol. Add optional command:idFrom: method to ScintillaNotificationProtocol for command notifications. In a future version registerNotifyCallback: and ScintillaCocoa::RegisterNotifyCallback will be deprecated.
2013-09-10Bug [#1522]. Don't send selection change notification when scrolling.nyamatongwe1-1/+4
2013-09-09Fix memory leak for margin view.nyamatongwe1-0/+1
2013-09-09Use const for constant strings as recommended in Effective Objective C 2.0nyamatongwe1-1/+1
2013-09-09Since overlay scroll bars, the info bar is always full width so remove variablenyamatongwe1-6/+0
for width and comments that is no longer correct.
2013-09-08Stop exposing Scintilla implementation to clients from ScintillaView header.nyamatongwe1-3/+6
Platform.h and ScintillaCocoa.h are no longer imported in ScintillaView.h
2013-09-08Fix spelling mistakes in comments.nyamatongwe1-7/+7
2013-07-21Fix Clang C++11 compatibility.Neil1-1/+1
2013-06-15Simplify direct access using Scintilla messages and avoid call layers.nyamatongwe1-0/+15
2013-06-15Fix insertText: of ScintillaView to directly call ScintillaCocoa since ↵nyamatongwe1-1/+1
insertText of InnerView was replaced with insertText:replacementRange: to implement NSTextInputClient in [df4058].
2013-05-19The convertRectToScreen: message was introduced in 10.7 so use ↵nyamatongwe1-2/+9
convertBaseToScreen: call on 10.6. convertBaseToScreen: was deprecated in 10.7.
2013-05-04Replacing raw pointers and allocations with std::string and std::vector.nyamatongwe1-14/+6
Don't check result of new as failures throw an exception.
2013-04-24Feature: [feature-requests:#987]. Cocoa user interface validation.nyamatongwe1-0/+22
2013-04-17Remove method no longer needed due to change from NSTextInput to ↵nyamatongwe1-8/+0
NSTextInputClient.
2013-04-17Switch from implementing NSTextInput to its replacement NSTextInputClientnyamatongwe1-7/+31
NSTextInput is slated for deprecation and NSTextInputClient allows the selection of accented characters through pressing and holding the base key.