summaryrefslogtreecommitdiff
path: root/new/darwin/util.m
diff options
context:
space:
mode:
Diffstat (limited to 'new/darwin/util.m')
-rw-r--r--new/darwin/util.m20
1 files changed, 0 insertions, 20 deletions
diff --git a/new/darwin/util.m b/new/darwin/util.m
deleted file mode 100644
index 906a0ea..0000000
--- a/new/darwin/util.m
+++ /dev/null
@@ -1,20 +0,0 @@
-// 7 april 2015
-#import "uipriv_darwin.h"
-
-// also fine for NSCells and NSTexts (NSTextViews)
-void setStandardControlFont(NSControl *control)
-{
- [control setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSRegularControlSize]]];
-}
-
-void disableAutocorrect(NSTextView *tv)
-{
- [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];
-}