osx - OS X QuickLook implementation for Collada DAE file? -


i'm developing quicklook generator convert existing file 3d collada dae format supported quicklook out of book , can zoomed/panned around directly in quicklook window. have looked on apple quicklook document mentioned if convert document representing 3d model collada dae format, quick can display preview interface allowing model zoomed , rotated.

however, came across part need pass data quicklook requires content type uti in third argument, provided in documentation. (in case, type rtf)

qlpreviewrequestsetdatarepresentation(preview,                                       (__bridge cfdataref)rtfdata,                                       kuttypertf,                                       null); 

however, have no idea display dae file. uti ?

to determine uti of file on os x, can launch mdls path/to/file in terminal. 1 of attributes kmditemcontenttype. uti of file. collada file returns:

kmditemcontenttype             = "org.khronos.collada.digital-asset-exchange" 

so can use cfstr("org.khronos.collada.digital-asset-exchange") argument you're looking (there no pre-defined constant it).


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -