From f72981ca10a7bc0a7d6ea360d91ab12d59009861 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Sun, 26 Feb 2017 11:00:52 +0100 Subject: [PATCH] Make some fields private --- VimR/AppDelegate.swift | 2 +- VimR/FileOutlineView.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VimR/AppDelegate.swift b/VimR/AppDelegate.swift index 38678ece..86b760f4 100644 --- a/VimR/AppDelegate.swift +++ b/VimR/AppDelegate.swift @@ -9,7 +9,7 @@ import PureLayout import Sparkle /// Keep the rawValues in sync with Action in the `vimr` Python script. -private enum VimRUrlAction: String { +fileprivate enum VimRUrlAction: String { case activate = "activate" case open = "open" case newWindow = "open-in-new-window" diff --git a/VimR/FileOutlineView.swift b/VimR/FileOutlineView.swift index b1dcda28..6e35454e 100644 --- a/VimR/FileOutlineView.swift +++ b/VimR/FileOutlineView.swift @@ -14,9 +14,6 @@ class FileOutlineView: NSOutlineView, typealias StateType = MainWindow.State - var cwd: URL = FileUtils.userHomeUrl - var isShowHidden: Bool - required init(source: Observable, emitter: ActionEmitter, state: StateType) { self.emitter = emitter @@ -115,6 +112,9 @@ class FileOutlineView: NSOutlineView, fileprivate let uuid: String fileprivate var lastFileSystemUpdateMark = Token() + fileprivate var cwd: URL = FileUtils.userHomeUrl + fileprivate var isShowHidden: Bool + fileprivate var root: FileBrowserItem fileprivate let fileSystemRoot: FileItem