summaryrefslogtreecommitdiff
path: root/redo/window_darwin.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-11 00:17:21 -0400
committerPietro Gagliardi <[email protected]>2014-08-11 00:17:21 -0400
commit4bede4aa8d673e04ee1157ddb62721fa4e6813d9 (patch)
tree18a51bb66b6fd4017d86d221526354b6b200464f /redo/window_darwin.m
parent57cdc83280f01d892e7109a2c6b0032ea9c6887e (diff)
Split the autocorrect disabling stuff on Mac OS X into its own function and marked the TextArea TODO as a future plan.
Diffstat (limited to 'redo/window_darwin.m')
-rw-r--r--redo/window_darwin.m8
1 files changed, 1 insertions, 7 deletions
diff --git a/redo/window_darwin.m b/redo/window_darwin.m
index 7cb97d6..b58c2b8 100644
--- a/redo/window_darwin.m
+++ b/redo/window_darwin.m
@@ -47,13 +47,7 @@ id newWindow(intptr_t width, intptr_t height)
// so we have to turn them off here
// thanks akempgen in irc.freenode.net/#macdev
// for some reason, this selector returns NSText but is documented to return NSTextView...
- // TODO isolate into its own function when (if?) we add TextArea
- tv = (NSTextView *) [w fieldEditor:YES forObject:nil];
- [tv setEnabledTextCheckingTypes:0];
- [tv setAutomaticDashSubstitutionEnabled:NO];
- // don't worry about automatic data detection; it won't change stringValue (thanks pretty_function in irc.freenode.net/#macdev)
- [tv setAutomaticSpellingCorrectionEnabled:NO];
- [tv setAutomaticTextReplacementEnabled:NO];
+ disableAutocorrect((id) [w fieldEditor:YES forObject:nil]);
return w;
}