diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-18 10:40:53 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-18 10:40:53 +1000 |
commit | 59b95105a1e71ad6b62a1970e88a0390850e5bfe (patch) | |
tree | b2b837ef548ae7550d9e0bafb68ad50dcddd3f3c /cocoa/ScintillaCocoa.h | |
parent | c7eca832e818dbaa7180822fdea6f3aabcd83a32 (diff) | |
download | scintilla-mirror-59b95105a1e71ad6b62a1970e88a0390850e5bfe.tar.gz |
Reimplement notifications from ScintillaCocoa to ScintillaView as a delegate relationship
using ScintillaNotificationProtocol.
Add optional command:idFrom: method to ScintillaNotificationProtocol for command
notifications.
In a future version registerNotifyCallback: and ScintillaCocoa::RegisterNotifyCallback
will be deprecated.
Diffstat (limited to 'cocoa/ScintillaCocoa.h')
-rw-r--r-- | cocoa/ScintillaCocoa.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index 4842e2098..c857fd21a 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -86,6 +86,9 @@ private: TimerTarget* timerTarget; NSEvent* lastMouseEvent; + id<ScintillaNotificationProtocol> delegate; + bool delegateHasCommand; + SciNotifyFunc notifyProc; intptr_t notifyObj; @@ -123,6 +126,7 @@ public: ScintillaCocoa(InnerView* view, MarginView* viewMargin); virtual ~ScintillaCocoa(); + void SetDelegate(id<ScintillaNotificationProtocol> delegate_); void RegisterNotifyCallback(intptr_t windowid, SciNotifyFunc callback); sptr_t WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam); |