     }
     
     
-    /// "Actaul Size" button was pressed
+    /// "Actaul Size" button was touched
     @IBAction func resetTextSize(_ sender: Any?) {
         
         self.textView?.setScaleKeepingVisibleArea(1.0)
     }
     
-    
-    
-    // MARK: Private Methods
-    
-    private var textView: NSTextView? {
-        
-        return self.textContainer?.textView
-    }
-    
 }

        self.defaultItemIdentifiers = forPressAndHold ? [.textSizeSlider] : [.textSizeActual, .textSizeSlider]
        
        // observe scale for slider
        self.scaleObserver = textView.observe(\.scale) { [weak self] (textView, _) in
            guard let item = self?.item(forIdentifier: .textSizeSlider) as? NSSliderTouchBarItem else { return assertionFailure() }
            
            item.slider.doubleValue = Double(textView.scale)
        }

        switch identifier {
        case .textSizeActual:
            let item = NSCustomTouchBarItem(identifier: identifier)
            item.view = NSButton(title: "Actual Size".localized, target: self, action: #selector(resetTextSize))
            return item
            
        case .textSizeSlider:
