Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image Finder不会为JPEG(public.JPEG)文件类型调用我的快速查找生成器_Image_Macos_Quicklook_Uti - Fatal编程技术网

Image Finder不会为JPEG(public.JPEG)文件类型调用我的快速查找生成器

Image Finder不会为JPEG(public.JPEG)文件类型调用我的快速查找生成器,image,macos,quicklook,uti,Image,Macos,Quicklook,Uti,我已经实现了一个快速查看生成器,可以显示多种图像类型,包括JPEG文件 系统正在调用它来为其属性列表中出现的任何文件类型(public.jpeg除外)呈现缩略图和预览 <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string></string>

我已经实现了一个快速查看生成器,可以显示多种图像类型,包括JPEG文件

系统正在调用它来为其属性列表中出现的任何文件类型(public.jpeg除外)呈现缩略图和预览

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string></string>
        <key>CFBundleTypeRole</key>
        <string>QLGenerator</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.jpeg</string>
            <string>com.canon.cr2-raw-image</string>
            <string>com.sony.arw-raw-image</string>
        </array>
    </dict>
</array>
尽管如此,当我在Finder中选择JPEG文件并按空格键时,“快速查找”始终会调用默认生成器:

10/26/15 6:23:49.343 PM com.apple.quicklook.satellite[21978]: [QL] <QLThumbnailRequest testfile.jpg>. Content type UTI: public.jpeg. Generator used: <QLGenerator /System/Library/QuickLook/Image.qlgenerator>
(通过快速查看,bootstrap_register()错误似乎无处不在,并且在预览其他文件类型时也会出现,但这些错误可以正常工作。)


有没有一种方法可以快速查找调用我的JPEG文件生成器?

这似乎是MacOS 10.9中的一个错误。qlImageSize项目的作者遇到了同样的问题,并提交了一份报告

另一位与会者评论道:“苹果回应了我的bug报告,确认了优胜美地的解决方案。没有提到小牛。”

我自己的经历也是如此。10.9下未为public.jpeg调用的同一快速查找生成器与10.10和10.11下的预期一样工作

10/26/15 6:23:49.343 PM com.apple.quicklook.satellite[21978]: [QL] <QLThumbnailRequest testfile.jpg>. Content type UTI: public.jpeg. Generator used: <QLGenerator /System/Library/QuickLook/Image.qlgenerator>
qlmanage -p -c public.jpeg -g "/Applications/MyApp.app/Contents/Library/QuickLook/MyQLGenerator.qlgenerator" testfile.jpg 
Testing Quick Look preview with files:
    testfile.jpg
    - force using content type UTI: public.jpeg
    - force using generator at path:
    /Applications/MyApp.app/Contents/Library/QuickLook/MyQLGenerator.qlgenerator

2015-10-26 18:43:34.450 qlmanage[22054:507] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8c27, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2015-10-26 18:43:34.475 qlmanage[22054:507] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8d47, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2015-10-26 18:43:34.475 qlmanage[22054:507] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions