aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-09-08 12:57:45 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-09-08 12:57:45 +1000
commit7165e22b51b8660fe81a0f4d4b99f31184154e73 (patch)
treec2ec3056fe6d109762fb6357bed82c900015ae41 /cocoa/ScintillaView.mm
parent0ee832d0249858a735112184e7d62be158d27228 (diff)
downloadscintilla-mirror-7165e22b51b8660fe81a0f4d4b99f31184154e73.tar.gz
Stop exposing Scintilla implementation to clients from ScintillaView header.
Platform.h and ScintillaCocoa.h are no longer imported in ScintillaView.h
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm9
1 files changed, 6 insertions, 3 deletions
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];
}