diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2016-11-18 10:23:02 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2016-11-18 10:23:02 +1100 |
commit | 7534f0de9b9f218b918395b274afda65f35a2017 (patch) | |
tree | 13758f64b1061d7b3e9de3665d69d5694130e12e /cocoa/ScintillaView.mm | |
parent | 2a469cc8054031ee127d0eeb711b5b90250443a0 (diff) | |
download | scintilla-mirror-7534f0de9b9f218b918395b274afda65f35a2017.tar.gz |
Remove Scintilla namespace and ScintillaCocoa declaration from ScintillaView.h
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r-- | cocoa/ScintillaView.mm | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index 8afb04f79..292a2b982 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -15,6 +15,11 @@ using namespace Scintilla; +// Add backend property as a private category +@interface ScintillaView () +@property (nonatomic, readonly) Scintilla::ScintillaCocoa* backend; +@end + // Two additional cursors we need, which aren't provided by Cocoa. static NSCursor* reverseArrowCursor; static NSCursor* waitCursor; @@ -1181,7 +1186,11 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context //-------------------------------------------------------------------------------------------------- -@implementation ScintillaView +@implementation ScintillaView { + // The back end is kind of a controller and model in one. + // It uses the content view for display. + Scintilla::ScintillaCocoa* mBackend; +} @synthesize backend = mBackend; @synthesize delegate = mDelegate; @@ -1322,7 +1331,7 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context * A delegate can be set to receive all notifications. If set no handling takes place here, except * for action pertaining to internal stuff (like the info bar). */ -- (void) notification: (Scintilla::SCNotification*)scn +- (void) notification: (SCNotification*)scn { // Parent notification. Details are passed as SCNotification structure. @@ -1959,7 +1968,7 @@ sourceOperationMaskForDraggingContext: (NSDraggingContext) context /** * Sets the notification callback */ -- (void) registerNotifyCallback: (intptr_t) windowid value: (Scintilla::SciNotifyFunc) callback +- (void) registerNotifyCallback: (intptr_t) windowid value: (SciNotifyFunc) callback { mBackend->RegisterNotifyCallback(windowid, callback); } |