 */
 
 class SBDownloadView: SBView, SBAnswersIsFirstResponder {
+    var sbSuperview: SBDownloadsView? { return super.superview as? SBDownloadsView }
+    
     unowned var download: SBDownload
     private lazy var progressIndicator: SBCircleProgressIndicator? = {
         let progressIndicator = SBCircleProgressIndicator(frame: self.progressRect)

    // MARK: Event
    
    override func mouseEntered(event: NSEvent) {
        (superview as! SBDownloadsView).layoutToolsForItem(self)
    }
    
    override func mouseMoved(event: NSEvent) {
        let location = event.locationInWindow
        let point = convertPoint(location, fromView: nil)
        if bounds.contains(point) {
            (superview as! SBDownloadsView).layoutToolsForItem(self)
        }
    }
    
    override func mouseExited(event: NSEvent) {
        (superview as! SBDownloadsView).layoutToolsHidden()
    }
    
    // MARK: Drawing

    }
    
    func remove() {
        sbSuperview!.layoutToolsHidden()
        SBDownloads.sharedDownloads.removeItem(download)
    }
    
    func finder() {
        if download.path &! {NSFileManager.defaultManager().fileExistsAtPath($0)} {
            NSWorkspace.sharedWorkspace().selectFile(download.path!, inFileViewerRootedAtPath: "")
            sbSuperview!.layoutToolsHidden()
        }
    }
    
