I know IKImageBrowserView can be set to take control of the QuickLook panel, but how can I show that panel programmatically?
Thank you
I know IKImageBrowserView can be set to take control of the QuickLook panel, but how can I show that panel programmatically?
Thank you
[ik.window makeFirstResponder:ik];
QLPreviewPanel *panel = [QLPreviewPanel sharedPreviewPanel];
[panel updateController];
[panel makeKeyAndOrderFront:nil];
As long as your -[IKImageBrowserItem imageRepresentationType]
returns IKImageBrowserNSURLRepresentationType
or IKImageBrowserPathRepresentationType
, all you have to do is set
-[IKImageBrowserView setCanControlQuickLookPanel:YES]
and then you will have QuickLook support.
However if the dataSoure return item is neither URLs or paths, you must also implement the QLPreviewItem
protocol in your IKImageBrowserView
subclass and return the requested URL for the custom cell.
See: IKImageBrowserView class ref for more detailed info