diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-30 16:34:40 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-30 16:34:40 +1000 |
commit | deb3e4c0f34a483a3cb5daa3009da5cdead45e6a (patch) | |
tree | 8450d6039a31ea824e0e4eeca03f8e6d669ae2a2 /cocoa/ScintillaView.mm | |
parent | 973d219c3051089dd2ccab7785dc7b8ac9334105 (diff) | |
download | scintilla-mirror-deb3e4c0f34a483a3cb5daa3009da5cdead45e6a.tar.gz |
Removed command: method from ScintillaNotificationProtocol as all events can now be
received through the notification: method.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r-- | cocoa/ScintillaView.mm | 23 |
1 files changed, 2 insertions, 21 deletions
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; } } |