aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
AgeCommit message (Collapse)AuthorFilesLines
2021-05-10Implement UpdateBaseElements on Cocoa to update colours to match current systemNeil Hodgson1-0/+25
settings. Trigger UpdateBaseElements when system settings change. This makes Scintilla (by default) track the correct tint to show as the selection background.
2021-05-09Change first responder / active handling so only treating as focussed whenNeil Hodgson1-2/+2
both active and first responder. This has no visual effect yet but allows greying the selection when not focussed.
2021-04-02Bug [#2238]. Fix drawing in revealed area after enlarging window.Petko Georgiev1-0/+2
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-0/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Change Window::Cursor to an enum class.Neil1-7/+7
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2019-12-13Add or fix file name comments.Neil1-0/+1
2019-06-30Bug [#2038]. Source of input reported in SCN_CHARADDED.Zufu Liu1-4/+4
This may be SC_CHARACTERSOURCE_DIRECT_INPUT, SC_CHARACTERSOURCE_TENTATIVE_INPUT, or SC_CHARACTERSOURCE_IME_RESULT.
2019-06-24On Cocoa, stop internal failures for missing fonts.Neil Hodgson1-3/+5
Avoid propagating terminating NULs from SCI_STYLEGETFONT and SCI_TARGETASUTF8.
2019-06-23Feature [feature-requests:#1297] Fixed one INDIC_IME forgotten in 7594.Neil Hodgson1-1/+1
2019-06-22Feature [feature-requests:#1297] Update to use INDICATOR_ instead of INDIC_ asNeil1-4/+4
INDIC_ is also used for indicator styles.
2019-03-25Use generic std::abs instead of abs and fabs.Neil1-1/+1
2019-03-25Use generic versions of ceil, floor, round, lround, trunc from <cmath>.Neil1-4/+6
2019-01-06Bug [#2022]. Fix incorrect horizontal offset on macOS 10.14 Mojave.Chinh Nguyen1-1/+24
2018-08-16For reverse arrow margin cursor, move hotspot to the tip of the arrow.Neil Hodgson1-1/+1
This fixes a bug where clicking seemed to affect the wrong margin.
2018-06-07Update Cocoa enumerations to current names instead of deprecated names.Neil Hodgson1-3/+3
2018-05-18Add <vector> to files that include Platform.h as likely needed in future.Neil1-0/+1
2018-05-14Include <string_view> to allow future use in Platform interface and Unicode.Neil1-0/+2
2018-04-22Fix problems with 64-bit positions by using types that expand to 64-bits andNeil Hodgson1-3/+3
removing casts to int.
2017-09-18Bug [#1885]. Improve scrolling on macOS 10.12.Neil Hodgson1-8/+15
2017-07-18Bug [#1958]. Make doCommandBySelector work but avoid double effect of 'delete'Neil Hodgson1-4/+7
key.
2017-06-08Indented consistently by using astyle.Neil1-1348/+1146
2017-06-07Use property dot syntax.Neil Hodgson1-57/+57
Part of modernization.
2017-06-07Using modern Objective C literals and indexing.Neil Hodgson1-13/+12
2017-06-07Using instancetype for constructors.Neil Hodgson1-2/+2
2017-06-05Converted to Automatic Reference Counting.Neil Hodgson1-30/+17
2017-04-22Restrict cursor changing to visible bounds so the text area cursor doesn't showNeil1-1/+2
over other views above and below ScintillaView.
2017-04-22Fix a leak of mouse tracking areas.Neil Hodgson1-0/+4
2017-04-15Avoid calling virtual functions in destructor. Mark overridden methods.Neil Hodgson1-0/+1
2017-03-04Fix error with showing find indicator over styles > 127.Neil Hodgson1-1/+3
2017-03-02Fix potential problems with IME on Cocoa when document contains invalid UTF-8.Neil1-0/+1
2017-03-02Bug [#1881]. Revert part of previous fix as it stopped the accented characterNeil1-1/+11
chooser from appearing. Special-case the Chinese "Cangjie" input source.
2017-02-25Bug [#1915]. Fix crash on OS X 10.9 due to accessibility API not available.Chinh Nguyen1-7/+11
2016-12-08Bug [#1891]. Fix crash on view destruction with macOS 10.12.2.Chinh Nguyen1-0/+1
2016-11-23Implementation of MarginRightClick event.Tse Kit Yam1-3/+29
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.