     }
     
     override var acceptsFirstResponder: Bool { return true }
+
+    override func acceptsFirstMouse(theEvent: NSEvent) -> Bool { return true }
     
     override func mouseDown(theEvent: NSEvent) {
         self.needsDisplay = true

    var popoverWillShowHandler: (() -> ())?

    init(viewController: NSViewController, image: NSImage?, alternateImage: NSImage?) {
        self.viewController = viewController
        
        let height = NSStatusBar.systemStatusBar().thickness

                self.popoverWillShowHandler!()
            }
            
            //NSApplication.sharedApplication().activateIgnoringOtherApps(true)
            
            self.popover.animates = animated
            self.popover.contentSize = self.viewController.view.frame.size
