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
commitb5ebbef03278917f246e04c4077e180de168749c (patch)
tree75aeaf7ee2d1789debc7ae52f7afe8fb414d5911 /cocoa/ScintillaCocoa.mm
parent1da4efa50a5b989115292ea66befea52c73b8b2d (diff)
downloadscintilla-mirror-b5ebbef03278917f246e04c4077e180de168749c.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);
}