aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaCocoa.mm
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-09-30 16:34:40 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-09-30 16:34:40 +1000
commitdeb3e4c0f34a483a3cb5daa3009da5cdead45e6a (patch)
tree8450d6039a31ea824e0e4eeca03f8e6d669ae2a2 /cocoa/ScintillaCocoa.mm
parent973d219c3051089dd2ccab7785dc7b8ac9334105 (diff)
downloadscintilla-mirror-deb3e4c0f34a483a3cb5daa3009da5cdead45e6a.tar.gz
Removed command: method from ScintillaNotificationProtocol as all events can now be
received through the notification: method.
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
-rw-r--r--cocoa/ScintillaCocoa.mm10
1 files changed, 0 insertions, 10 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 79332eda6..beae1cace 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -385,7 +385,6 @@ ScintillaCocoa::ScintillaCocoa(InnerView* view, MarginView* viewMargin)
timerTarget = [[TimerTarget alloc] init: this];
lastMouseEvent = NULL;
delegate = NULL;
- delegateHasCommand = false;
notifyObj = NULL;
notifyProc = NULL;
capturedMouse = false;
@@ -1664,11 +1663,6 @@ void ScintillaCocoa::UpdateForScroll() {
void ScintillaCocoa::SetDelegate(id<ScintillaNotificationProtocol> delegate_)
{
delegate = delegate_;
- delegateHasCommand = false;
- if (delegate)
- {
- delegateHasCommand = [(id)delegate respondsToSelector: @selector(command:ctrlID:)];
- }
}
//--------------------------------------------------------------------------------------------------
@@ -1695,8 +1689,6 @@ void ScintillaCocoa::NotifyChange()
if (notifyProc != NULL)
notifyProc(notifyObj, WM_COMMAND, Platform::LongFromTwoShorts(GetCtrlID(), SCEN_CHANGE),
(uintptr_t) this);
- if (delegateHasCommand)
- [delegate command:SCEN_CHANGE idFrom:GetCtrlID()];
}
//--------------------------------------------------------------------------------------------------
@@ -1706,8 +1698,6 @@ void ScintillaCocoa::NotifyFocus(bool focus)
if (notifyProc != NULL)
notifyProc(notifyObj, WM_COMMAND, Platform::LongFromTwoShorts(GetCtrlID(), (focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS)),
(uintptr_t) this);
- if (delegateHasCommand)
- [delegate command:(focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS) idFrom:GetCtrlID()];
Editor::NotifyFocus(focus);
}