From 8d42890df49564d6d81e413bcd4428bf6a8b10e6 Mon Sep 17 00:00:00 2001 From: Daniel Kulp Date: Sat, 30 Jan 2016 08:11:01 -0500 Subject: [PATCH] Turn off automatic dash replacement in wxOSX wxTextCtrl This makes the text control match the other platforms as well as making it usable for entering compiler or command line flags for programs. Closes https://github.com/wxWidgets/wxWidgets/pull/186 --- src/osx/cocoa/textctrl.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osx/cocoa/textctrl.mm b/src/osx/cocoa/textctrl.mm index 132dab3ea6..a86a4d2f63 100644 --- a/src/osx/cocoa/textctrl.mm +++ b/src/osx/cocoa/textctrl.mm @@ -620,7 +620,8 @@ wxNSTextViewControl::wxNSTextViewControl( wxTextCtrl *wxPeer, WXWidget w, long s [tv setVerticallyResizable:YES]; [tv setHorizontallyResizable:hasHScroll]; [tv setAutoresizingMask:NSViewWidthSizable]; - + [tv setAutomaticDashSubstitutionEnabled:false]; + if ( hasHScroll ) { [[tv textContainer] setContainerSize:NSMakeSize(FLT_MAX, FLT_MAX)];