Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Override a UTI?



That's a tricky question and there is no good answer yet to that. As you can see, the problem here is file typing by extension, not the UTI itself.
Feel free to file a bug to Apple to ask some kind of "type sniffing".


--
Julien

On 15 févr. 08, at 01:01, Matt Hoffman wrote:

I have a movie format that has been around on the Mac for about 20 years and uses the .img extension. There is a QT component
plug-in for it (in fact it is used as Apple's sample code for developing QT components). I want to create a UTI so QuickLook will
recognize the extension and use the QT component for the preview.


I added the following to the plist of my main application:

<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.movie</string>
</array>
<key>UTTypeDescription</key>
<string>EIAS Animation File</string>
<key>UTTypeIconName</key>
<string>generic</string>
<key>UTTypeIdentifier</key>
<string>com.apple.quicktime.img</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>img</string>
</array>
</dict>
</dict>
</array>


What I find when using qlmanage in terminal to preview the file is that the UTI is registered to the old disk image file
"Content type UTI: com.apple.disk-image-ndif"


I know my basic procedure is correct in that changing my plist's public.filename-extension from img to imgz and changing
a sample-file's extension to .imgz does cause the qt .img component to be called when I invoke QuickLook.


Is there a way to make sure my UTI gets priority over the now defunct disk image UTI?

Matt Hoffman

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quicklook-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicklook-dev/jjalon %40apple.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Quicklook-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicklook-dev/email@hidden

This email sent to email@hidden
References: 
 >Override a UTI? (From: Matt Hoffman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.