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
commiteb62b8e93491d96e7e8e99e6f6860d1f6441cdd9 (patch)
treebd0816183b84c618a92dfb75d3ef0805fde8cfb8 /cocoa/ScintillaView.mm
parent8d67948c8a547be2e60d14856dfb96dfc543cfb2 (diff)
downloadscintilla-mirror-eb62b8e93491d96e7e8e99e6f6860d1f6441cdd9.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];
}