From a8ec0328ac3fa1fa3f1326c7e47a2d8ec1c3033f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 24 Jul 2010 11:31:15 +1000 Subject: Updates from Scintilla-Cocoa project. Updated case mapping, modifier key for zoom, redo, mouse wheel, search and highlight. --- cocoa/ScintillaTest/AppController.mm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cocoa/ScintillaTest/AppController.mm') diff --git a/cocoa/ScintillaTest/AppController.mm b/cocoa/ScintillaTest/AppController.mm index d660e0f75..9bce5fd11 100644 --- a/cocoa/ScintillaTest/AppController.mm +++ b/cocoa/ScintillaTest/AppController.mm @@ -209,6 +209,18 @@ const char user_keywords[] = // Definition of own keywords, not used by MySQL. [mEditor setStatusText: @"Operation complete"]; } +//-------------------------------------------------------------------------------------------------- + +- (IBAction) searchText: (id) sender +{ + NSSearchField* searchField = (NSSearchField*) sender; + [mEditor findAndHighlightText: [searchField stringValue] + matchCase: NO + wholeWord: NO + scrollTo: YES + wrap: YES]; +} + @end //-------------------------------------------------------------------------------------------------- -- cgit v1.2.3