I am working on a Cocoa Project . In my project I am dragging a media to my window and trying
to view / play it using QLPreviewController.I got a requirement where I should play & pause my
video when I click the space bar (after viewing it in QLPreviewController).My
QLPreviewView is added as subview to NSWindow and this window is shown as follows.
[mediaWindow addSubView:previewWindow];//previewWindow is QLPreviewView instance
[mediaWindow ShowWindow:nil]; //mediaWindow is NSWindow
I wanted know how to enable play and pause through the space bar when the video is viewed ,
which is not happening currently . Any help is appreciated.