aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
AgeCommit message (Collapse)AuthorFilesLines
2018-10-04Fix crash when particular patterns of invalid UTF-8 led to failure to create aNeil Hodgson1-1/+4
CFStringRef. Performs more stringent validation on input text.
2018-06-07Update Cocoa enumerations to current names instead of deprecated names.Neil Hodgson1-2/+2
2018-06-02Implement IScreenLineLayout for Cocoa Core Text as ScreenLineLayout.Neil1-4/+211
2018-06-02Define IScreenLineLayout as the main interface for implementing bidirectionalNeil1-10/+2
features by platform code. Implement IScreenLineLayout for Win32 / DirectWrite as ScreenLineLayout.
2018-05-23Add definitions for bidirectional support to Platform.h and provide emptyNeil1-0/+19
implementations for each platform.
2018-05-22Add GradientRectangle method to Surface to draw rectangles with vertical orNeil1-0/+44
horizontal gradients.
2018-05-21If decoding DBCS text fails, use the MacRoman encoding to ensure something isNeil Hodgson1-2/+12
visible.
2018-05-21Remove CGContextRef field in QuartzTextLayout as it is only used in draw methodNeil Hodgson1-5/+2
where it can easily be provided. Retaining a CGContextRef in QuartzTextLayout could lead to it being used after being invalidated.
2018-05-14Modernize Platform.h (4) - update Surface to use string_view for text arguments.Neil1-21/+20
2018-05-14Modernize Platform.h (3) - update Surface to delete WidthChar, use size_t forNeil1-13/+2
Polygon and delete the standard copy and assignment methods.
2018-05-14Modernize Platform.h (2) - noexcept, const, constexpr.Neil1-3/+3
ColourDesired is an int instead of long for consistency over different platforms. Changes made to Point, PRectangle, and ColourDesired. RoundXYPosition removed.
2018-05-14Modernize Platform.h (1) - noexcept, const, standard methods.Neil1-7/+7
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform.
2018-05-14Include <string_view> to allow future use in Platform interface and Unicode.Neil1-0/+1
2018-05-01Remove dead function and unnecessary casts. Convert C casts to C++ casts.Neil Hodgson1-26/+12
Use nullptr where unambiguous and is C++ as distinct from Objective C.
2018-04-26Use <chrono> for platform-independent timing and remove ElapsedTime.Neil1-28/+0
Also use #if for painting measurement as there are 7 sections of code to enable.
2018-04-25Remove variables and casts that are not needed.Neil1-2/+2
2018-04-22Reduce casts by moving casting from char* to UInt8* into ↵Neil Hodgson1-9/+17
QuartzTextLayout::SetText and adding helper TextStyleFromFont to cast from Font to QuartzTextStyle.
2018-04-15Feature [feature-requests:#1215]. Stop warning about virtual call in destructor.Neil1-2/+8
2018-03-22Feature [feature-requests:#1211]. Use pre-computed table for UTF8BytesOfLead.Zufu Liu1-15/+4
Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests.
2018-02-27Added <utility> and <tuple> to header order and moved POSIX header <sys/time.h>Neil1-2/+2
after standard C++ language headers.
2017-11-09Close autocompletion list for escape and delete on macOS 10.13 as the windowchinhster1-1/+1
was emptying but stayed visible.
2017-06-12Removed unused functions and methods from Platform.h.Neil1-131/+1
Replaced Platform::Clamp with Sci::clamp but will later change this to std::clamp once on full C++17 compilers. Drop MouseButtonBounce workaround for very early GTK+/Linux.
2017-06-11Implement SCN_AUTOCSELECTIONCHANGE notification.Neil1-17/+58
2017-06-08Indented consistently by using astyle.Neil1-1447/+1241
2017-06-07Use property dot syntax.Neil Hodgson1-35/+35
Part of modernization.
2017-06-07Using modern Objective C literals and indexing.Neil Hodgson1-4/+4
2017-06-05Converted to Automatic Reference Counting.Neil Hodgson1-30/+19
2017-05-07Use unique_ptr on Cocoa.Neil Hodgson1-16/+13
2017-05-02For Cocoa, use unique_ptr for drawing surfaces and don't check for allocationNeil1-12/+8
failure as that throws an exception.
2017-04-22Restrict cursor changing to visible bounds so the text area cursor doesn't showNeil1-1/+1
over other views above and below ScintillaView.
2017-04-22Replace C++ std::map with Cocoa NSMutableDictionary as easier to switch to ARCNeil1-54/+19
since memory ownership doesn't cross between C++ and Objective C as much.
2017-04-22Simplify NSImage creation by using its initWithCGImage directly instead ofNeil1-23/+16
creating an NSBitmapImageRep first.
2017-04-22Include <memory> for std::unique_ptr.Neil1-0/+1
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-1/+2
where it may be needed in the future.
2017-03-30Make autocompletion slightly wider to avoid text truncation.Neil Hodgson1-1/+2
2017-03-04Use "override" for Cocoa platform code and add to Editor where possible.Neil Hodgson1-24/+24
2017-01-24Use safer static_cast instead of reinterpret_cast. Remove cast to void*.Neil1-1/+1
2017-01-24Remove casts from id to Objective C object as they are not needed. Use saferNeil1-28/+28
static_cast instead of reinterpret_cast between void* and id or Objective C object.
2017-01-24Use correct signatures for pattern draw and release functions and avoidNeil1-6/+5
reinterpret_cast
2017-01-23Use safer static_cast instead of reinterpret_cast when converting FontID toNeil1-11/+11
QuartzTextStyle.
2016-09-21Bug [#1863]. Allow subclass of SCIContentView to set cursor.Tse Kit Yam1-1/+1
2016-04-08Update header ordering to cover all headers used in Scintilla and reorderNeil Hodgson1-3/+4
in Cocoa source consistently.
2015-12-10Bug [#1788]. Fix crash when autocompletion list closed during scroll bounce-backChinh Nguyen1-0/+1
2015-09-29ScreenMax no longer depends on window so do not pass as argument.Neil Hodgson1-3/+3
2015-09-29Mark local functions as static.Neil Hodgson1-2/+2
2015-06-25Bug [#1740]. Improve autocompletion positioning to avoid being off-screen.Neil Hodgson1-2/+14
Not perfect when the Scintilla view is overlapping the screen edge or dock as the position moved to is based on the view's area.
2015-06-19Fix crash in drag and drop.Neil Hodgson1-3/+11
2015-05-29Bug [#1728]. Initialise fields to nil when they may be released in ReleaseViewsNeil Hodgson1-3/+15
without ever being allocated by Create.
2015-05-13Bug [#1703]. Fix bug when drawing text margins in buffered mode which would useNeil1-1/+5
default encoding instead of chosen encoding.
2015-03-17Bug [#1706]. Release list box objects when autocompletion closed.Neil Hodgson1-15/+42