 
         setContentCompressionResistancePriority(NSLayoutPriorityDefaultHigh, forOrientation: .Vertical)
         setContentHuggingPriority(NSLayoutPriorityDefaultHigh, forOrientation: .Vertical)
+
+        observePlayer()
     }
 
     required init?(coder: NSCoder) {

            let pageRect = NSRect(x: CGFloat(i) * cellWidth, y: 0, width: cellWidth, height: bounds.height)
            t.drawInRect(pageRect)
        }
    }

    override func mouseDown(theEvent: NSEvent) {


class MovieOverviewControl: NSView {
    var player: AVPlayer? {
        willSet {
            guard let playerTimeObserver = playerTimeObserver else { return }
            player?.removeTimeObserver(playerTimeObserver)
        }
        didSet {
            reload()
            observePlayer()
        }
    }
    var playerTimeObserver: AnyObject?
    var currentTimePercent: CGFloat? {
        didSet {
            // FIXME: redraw only dirty rect
            setNeedsDisplayInRect(bounds)
        }
    }
    var imageGenerator: AVAssetImageGenerator?
    var numberOfPages: UInt = 0 {
