Skip to content

Commit

Permalink
Disables a spate of autosubstitutions in snippet editor
Browse files Browse the repository at this point in the history
  • Loading branch information
wookiee committed Aug 19, 2017
1 parent d201476 commit b19c5ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions MonkeyDo/MonkeyDo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@
DEVELOPMENT_TEAM = VMY8R4T742;
INFOPLIST_FILE = MonkeyDo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.12.2;
PRODUCT_BUNDLE_IDENTIFIER = io.mikey.MonkeyDo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "MonkeyDo/MonkeyDo-Bridging-Header.h";
Expand All @@ -484,6 +485,7 @@
DEVELOPMENT_TEAM = VMY8R4T742;
INFOPLIST_FILE = MonkeyDo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.12.2;
PRODUCT_BUNDLE_IDENTIFIER = io.mikey.MonkeyDo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "MonkeyDo/MonkeyDo-Bridging-Header.h";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ class SnippetsViewController: NSViewController {

override func viewDidLoad() {
super.viewDidLoad()
bodyTextView.isAutomaticDataDetectionEnabled = false
bodyTextView.isAutomaticTextCompletionEnabled = false
bodyTextView.isAutomaticLinkDetectionEnabled = false
bodyTextView.isAutomaticDashSubstitutionEnabled = false
bodyTextView.isAutomaticQuoteSubstitutionEnabled = false
bodyTextView.isAutomaticSpellingCorrectionEnabled = false
tableView.registerForDraggedTypes([NSPasteboard.PasteboardType("public.data")])
}

Expand Down
4 changes: 2 additions & 2 deletions MonkeyDo/MonkeyDo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3</string>
<string>1.3.1</string>
<key>CFBundleVersion</key>
<string>200</string>
<string>202</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
Expand Down

0 comments on commit b19c5ec

Please sign in to comment.