aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaTest/AppController.mm
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2023-09-27 15:45:05 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2023-09-27 15:45:05 +1000
commite1fe0a2bb0f5fc078f719198276757e4319e0e43 (patch)
treea0e846192c47440a787bc1f512dbc27071ffd806 /cocoa/ScintillaTest/AppController.mm
parent2ce3269bf0331da6b23cfcc7d954dc7bad33518d (diff)
downloadscintilla-mirror-e1fe0a2bb0f5fc078f719198276757e4319e0e43.tar.gz
Deprecated methods disableFlushWindow and enableFlushWindow are avoided on
macOS 10.14+. Test application contains example calls that exercize this when available.
Diffstat (limited to 'cocoa/ScintillaTest/AppController.mm')
-rw-r--r--cocoa/ScintillaTest/AppController.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/cocoa/ScintillaTest/AppController.mm b/cocoa/ScintillaTest/AppController.mm
index c835ba0de..9356ce1b8 100644
--- a/cocoa/ScintillaTest/AppController.mm
+++ b/cocoa/ScintillaTest/AppController.mm
@@ -116,6 +116,8 @@ const char user_keywords[] = // Definition of own keywords, not used by MySQL.
}
}
+ [mEditor suspendDrawing: TRUE];
+
// Keywords to highlight. Indices are:
// 0 - Major keywords (reserved keywords)
// 1 - Normal keywords (everything not reserved but integral part of the language)
@@ -219,6 +221,8 @@ const char user_keywords[] = // Definition of own keywords, not used by MySQL.
// Uncomment if you wanna see auto wrapping in action.
//[mEditor setGeneralProperty: SCI_SETWRAPMODE parameter: SC_WRAP_WORD value: 0];
+ [mEditor suspendDrawing: FALSE];
+
InfoBar* infoBar = [[[InfoBar alloc] initWithFrame: NSMakeRect(0, 0, 400, 0)] autorelease];
[infoBar setDisplay: IBShowAll];
[mEditor setInfoBar: infoBar top: NO];