                     }
                     return v
                 }()
+        if (_isDownloadingDocument) {
+            _view?.editable = false
+        }
         self.view = _view! as UIView
     }
 }


    init(documentURL: NSURL) {
        super.init(nibName: nil, bundle: nil)
        var document = TextDocument(fileURL: documentURL)
        document.openWithCompletionHandler( { (success: Bool) in
            if (success) {
                self._document = document
                document.editorDelegate = self
                var title = document.localizedName

    }

    override func loadView() {
        self.navigationItem.title = (_isDownloadingDocument ? "Downloading ..." : "Untitled")
        _view = {
                    let v = UITextView()
                    v.font = UIFont.preferredFontForTextStyle(UIFontTextStyleBody)
