aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm13
1 files changed, 12 insertions, 1 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index 3bdc9646a..100da27a8 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -873,6 +873,17 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor)
//--------------------------------------------------------------------------------------------------
/**
+ * Specify the InnerView class. Can be overridden in a subclass to provide an InnerView subclass.
+ */
+
++ (Class) innerViewClass
+{
+ return [InnerView class];
+}
+
+//--------------------------------------------------------------------------------------------------
+
+/**
* Receives zoom messages, for example when a "pinch zoom" is performed on the trackpad.
*/
- (void) magnifyWithEvent: (NSEvent *) event
@@ -1032,7 +1043,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor)
self = [super initWithFrame:frame];
if (self)
{
- mContent = [[[InnerView alloc] init] autorelease];
+ mContent = [[[[[self class] innerViewClass] alloc] initWithFrame:NSZeroRect] autorelease];
mContent.owner = self;
// Initialize the scrollers but don't show them yet.