         attributedString.drawAtPoint(stringLocation)
     }
     
-    override func mouseDown(theEvent: NSEvent) {
+    override public func mouseDown(theEvent: NSEvent) {
         if popover == nil {
             popover = NSPopover.makePopoverFor(self.content)
             popover.delegate = self

    var popover: NSPopover!

    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
        let frameSize = self.frame.size
        if frameSize.width != frameSize.height {

        popover.showRelativeToRect(self.frame, ofView: self.superview!, preferredEdge: NSMaxXEdge)
    }

    override public func mouseEntered(theEvent: NSEvent) { mouseInside = true }
    override public func mouseExited(theEvent: NSEvent) { mouseInside = false }
    public func popoverDidClose(notification: NSNotification) {
        self.needsDisplay = true
    }

