diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2012-04-16 16:04:00 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-04-16 16:04:00 +1000 |
commit | a1d7176b8051738e3a718f0ecb97a4ba7185f311 (patch) | |
tree | effdf5e3fc864a907a7e178af265c6c739b8a4ae /cocoa/ScintillaTest/AppController.mm | |
parent | 37018ef28c480627860c5e7fafd9baec6f4211fe (diff) | |
download | scintilla-mirror-a1d7176b8051738e3a718f0ecb97a4ba7185f311.tar.gz |
Implemented find indicator with animation for OS X.
Diffstat (limited to 'cocoa/ScintillaTest/AppController.mm')
-rw-r--r-- | cocoa/ScintillaTest/AppController.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cocoa/ScintillaTest/AppController.mm b/cocoa/ScintillaTest/AppController.mm index fc8c331c4..c28974109 100644 --- a/cocoa/ScintillaTest/AppController.mm +++ b/cocoa/ScintillaTest/AppController.mm @@ -262,6 +262,11 @@ static const char * box_xpm[] = { wholeWord: NO scrollTo: YES wrap: YES]; + + long matchStart = [mEditor getGeneralProperty: SCI_GETSELECTIONSTART parameter: 0]; + long matchEnd = [mEditor getGeneralProperty: SCI_GETSELECTIONEND parameter: 0]; + [mEditor setGeneralProperty: SCI_FINDINDICATORFLASH parameter: matchStart value:matchEnd]; + if ([[searchField stringValue] isEqualToString: @"XX"]) [self showAutocompletion]; } |