From deb3e4c0f34a483a3cb5daa3009da5cdead45e6a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 30 Sep 2013 16:34:40 +1000 Subject: Removed command: method from ScintillaNotificationProtocol as all events can now be received through the notification: method. --- cocoa/ScintillaCocoa.mm | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'cocoa/ScintillaCocoa.mm') 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 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); } -- cgit v1.2.3