diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-06-15 20:50:03 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-06-15 20:50:03 +1000 |
commit | 6520a5c42fe838d85b875d124944f012a8a6e390 (patch) | |
tree | 24a985640549123c2ab45e8b351e8bd860449f0d | |
parent | d73f2b32a6027e86dd442445c40d6305b285d5f9 (diff) | |
download | scintilla-mirror-6520a5c42fe838d85b875d124944f012a8a6e390.tar.gz |
Simplify direct access using Scintilla messages and avoid call layers.
-rw-r--r-- | cocoa/ScintillaView.h | 3 | ||||
-rw-r--r-- | cocoa/ScintillaView.mm | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.h b/cocoa/ScintillaView.h index 356c34adb..78fe65666 100644 --- a/cocoa/ScintillaView.h +++ b/cocoa/ScintillaView.h @@ -131,6 +131,9 @@ extern NSString *SCIUpdateUINotification; // Native call through to the backend. + (sptr_t) directCall: (ScintillaView*) sender message: (unsigned int) message wParam: (uptr_t) wParam lParam: (sptr_t) lParam; +- (sptr_t) message: (unsigned int) message wParam: (uptr_t) wParam lParam: (sptr_t) lParam; +- (sptr_t) message: (unsigned int) message wParam: (uptr_t) wParam; +- (sptr_t) message: (unsigned int) message; // Back end properties getters and setters. - (void) setGeneralProperty: (int) property parameter: (long) parameter value: (long) value; diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index f5db0cee1..692ff3b5a 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -1329,6 +1329,21 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa return ScintillaCocoa::DirectFunction(sender->mBackend, message, wParam, lParam); } +- (sptr_t) message: (unsigned int) message wParam: (uptr_t) wParam lParam: (sptr_t) lParam +{ + return mBackend->WndProc(message, wParam, lParam); +} + +- (sptr_t) message: (unsigned int) message wParam: (uptr_t) wParam +{ + return mBackend->WndProc(message, wParam, 0); +} + +- (sptr_t) message: (unsigned int) message +{ + return mBackend->WndProc(message, 0, 0); +} + //-------------------------------------------------------------------------------------------------- /** |