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 | 3fc9384925ba96aa33073363b407fb4fb08bd9ec (patch) | |
tree | aaf7297abbb318b800e9b7d909770df66ce53106 | |
parent | 80cf902155aa7bf4f4e7d0b7fce48395481b6a0e (diff) | |
download | scintilla-mirror-3fc9384925ba96aa33073363b407fb4fb08bd9ec.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); +} + //-------------------------------------------------------------------------------------------------- /** |