From 7165e22b51b8660fe81a0f4d4b99f31184154e73 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 8 Sep 2013 12:57:45 +1000 Subject: Stop exposing Scintilla implementation to clients from ScintillaView header. Platform.h and ScintillaCocoa.h are no longer imported in ScintillaView.h --- cocoa/ScintillaView.mm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cocoa/ScintillaView.mm') diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index 8abc37308..8d51dc825 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -9,7 +9,9 @@ * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ +#import "Platform.h" #import "ScintillaView.h" +#import "ScintillaCocoa.h" using namespace Scintilla; @@ -195,12 +197,13 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) /** * Called by the backend if a new cursor must be set for the view. */ -- (void) setCursor: (Window::Cursor) cursor +- (void) setCursor: (int) cursor { + Window::Cursor eCursor = (Window::Cursor)cursor; [mCurrentCursor autorelease]; - mCurrentCursor = cursorFromEnum(cursor); + mCurrentCursor = cursorFromEnum(eCursor); [mCurrentCursor retain]; - + // Trigger recreation of the cursor rectangle(s). [[self window] invalidateCursorRectsForView: self]; } -- cgit v1.2.3