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/ScintillaView.mm | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'cocoa/ScintillaView.mm') diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index ce0123982..3bdc9646a 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -1014,29 +1014,10 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) } break; } - } -} - -//-------------------------------------------------------------------------------------------------- - -/** - * Method receives notifications from Scintilla for gaining and losing focus and for changes. - * A delegate can be set to receive all notifications. - */ -- (void) command:(int)command idFrom:(int)idFrom -{ - if ((mDelegate != nil) && ([(id)mDelegate respondsToSelector:@selector(command:ctrlID:)])) - { - [mDelegate command:command idFrom:idFrom]; - } - - // Notifications for the editor itself. - switch (command) - { - case SCEN_KILLFOCUS: + case SCN_FOCUSOUT: [self sendNotification: NSTextDidEndEditingNotification]; break; - case SCEN_SETFOCUS: // Nothing to do for now. + case SCN_FOCUSIN: // Nothing to do for now. break; } } -- cgit v1.2.3