     
     override func mouseDown(with event: NSEvent) {
         let point = self.convert(event.locationInWindow, from: nil)
+        Swift.print("mouseDown:\(point)")
+        
         let charIndex = referenceView.textContainer!.textView!.characterIndexForInsertion(at: point)
         if charIndex < self.attributedStringValue.length {
             let attributes = self.attributedStringValue.attributes(at: charIndex, effectiveRange: nil)

        super.mouseDown(with: event)
    }
    
}



        view.layer?.backgroundColor = NSColor.clear.cgColor

        textTweet?.allowsEditingTextAttributes = true
        // If isSelectable set to true, selectable mouse pointer on the Link appears,
        // but no mouse events occur more than once.
        textTweet?.isSelectable = false
        
        menuStackView?.detachesHiddenViews = true
        
