Image UTIs not recognised by quicklook/.qlgenerator plugins on Mavericks ( 10.9.x)

Originator:mark.hunte
Number:rdar://15749882 Date Originated:05 jan 2014
Status:Closed - Duplicate of 15716253 (Open/Closed) Resolved:
Product:Other Product Version:Mac OS 10.9
Classification:Serious bug Reproducible:Always
 
Summary:
Third party Quicklook plugins are not being called even though they have Valid Image UTIs in the Document Content Type  in their info.plist file.

Using for example public.image UTI, jpeg, Tiff, Png and so are not recognised by the plugins.  The only exception to this is .icn and .PSD images.

Also if you add the defined Image UTIs i.e public.jpeg, public.tiff and so on. These are also not recognised.

Steps to Reproduce:
In Xcode: 
Add the public.image UTI to the Document Content Type  of the info.plist

Build the project.

Copy the qlgenerator plugin to the users Quicklook directory. ( ~/Library/QuickLook/ )

In Terminal:
Run the CLI : 

 qlmanage -r 

To reset the quicklookd so it picks up the plugin.

In Finder:

Select  Images of various Type and use the Space bar to invoke Quicklook




Expected Results:
My plugin embed the images in html. There are also some NSLogs used to debug.

When selecting an image in finder and hitting the space bar. I expect the Quicklook Preview to open showing the image and the html. 
There should also be  various NSLog output showing in Consol.app.


Actual Results:
When selecting an image in finder and hitting the space bar.

The images do not have the HTML and appear to be using the native Quicklook qlgenerator for images.

The only exception is when using public.image UTI. Images of .icn and .PSD work as expected.

Version:
Xcode Version 5.0.2 (5A3005)

  System Version:	OS X 10.9.1 (13B42)
  Kernel Version:	Darwin 13.0.0
  Boot Volume:	Macintosh HD
  Boot Mode:	Normal

Notes:
I initially thought the problem was with changes to take the plugin from running on 10.8 and lower to 10.9. And sandboxing

But just discovered that the plugin gets called only on .icn and PSD files. 

Which then led me to this  discussion https://github.com/Nyx0uf/qlImageSize/issues/4  where others are seeing the same problem.


Configuration:
This doe not occur on Macs running 10.8 and lower

This occurs on Macs Running 10.9.x

As an example on my:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!