Search code examples
iosquicklook

Mime Type (or something) So iOS Mail Does Not Open in Quicklook?


I've been following the brilliant instructions in this answer, which work perfectly. However, my file type is mime "application/notforquicklook" and quicklook still tries to open it. This causes general gear spinning and nothing happening.

How can I get around this problem? My files are compressed plists. Before I was using full XML plists, which worked fine, but they are too big (with no advantage).

Is this a question of choosing the right MIME type, or something else?


Solution

  • in fact, you should assign "public.data" to your "Conforms to UTIs" (UTTypeConformsTo) in "Exported Type UTIs" (CFBundleDocumentTypes)

    <dict>
        <key>UTTypeConformsTo</key>
        <array>
            <string>public.data</string>
        </array>
        <key>UTTypeDescription</key>
        <string>Scrollshow Presentation</string>
        <key>UTTypeIdentifier</key>
        <string>com.plimse.scrollshow</string>
        <key>UTTypeTagSpecification</key>
        <dict>
            <key>public.filename-extension</key>
            <string>scrollshow</string>
            <key>public.mime-type</key>
            <string>mime/x-scrollshow</string>
        </dict>
    </dict>