libui/zOLD_darwin/util.m

17 lines
640 B
Mathematica
Raw Normal View History

2015-08-16 21:30:44 -05:00
// 7 april 2015
#import "uipriv_darwin.h"
2016-05-24 22:13:44 -05:00
// LONGTERM do we really want to do this? make it an option?
// TODO figure out why we removed this from window.m
void uiprivDisableAutocorrect(NSTextView *tv)
2015-08-16 21:30:44 -05:00
{
[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];
[tv setAutomaticQuoteSubstitutionEnabled:NO];
[tv setAutomaticLinkDetectionEnabled:NO];
[tv setSmartInsertDeleteEnabled:NO];
}