From 5adfab9b076caa14065faec56bbf561ed06f61ad Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 31 Jul 2017 19:22:01 -0400 Subject: [PATCH] Clean up ViewController slightly --- writeas/ViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writeas/ViewController.swift b/writeas/ViewController.swift index 0f11b73..95f429c 100644 --- a/writeas/ViewController.swift +++ b/writeas/ViewController.swift @@ -68,7 +68,7 @@ class ViewController: NSViewController, NSTextViewDelegate, NSUserNotificationCe //writing do { - try writerText.textStorage!.string.write(to: path!, atomically: false, encoding: .utf8)// .write(toFile: path.absoluteString, atomically: true, encoding: .utf8) + try writerText.textStorage!.string.write(to: path!, atomically: false, encoding: .utf8) } catch (let err) { print("ERROR writing: \(err)") }