Can't get UTI to stick

5 views
Skip to first unread message

Jo Meder

unread,
Apr 2, 2012, 9:02:31 PM4/2/12
to coco...@lists.apple.com
Hi,

I've written a Quick Look generator for one of my app's file types. As part of that I've defined a UTI for that file type. However whatever I do I can't the UTI to stick. I've rebuilt the app, moved it around and used lsregister to kill the Launch Services database and rebuild it. Dumping the Launch Services database shows that the UTI isn't being picked up from the app. It's not happening on 10.5 or 10.6. Here are the relevant parts of my app's plist:

<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>tgc</string>
<string>TGC</string>
</array>
</dict>
<key>UTTypeDescription</key>
<string>Terragen 2 Clip document</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.xml</string>
</array>
<key>UTTypeIdentifier</key>
<array>
<string>uk.co.planetside.Terragen_2.clip</string>
</array>
</dict>
</array>

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>LSItemContentTypes</key>
<array>
<string>uk.co.planetside.Terragen_2.clip</string>
</array>
<key>CFBundleOSTypes</key>
<array>
<string>TG2C</string>
</array>
<key>CFBundleTypeExtensions</key>
<array>
<string>TGC</string>
<string>tgc</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>TGC.icns</string>
<key>CFBundleTypeName</key>
<string>Terragen 2 Clip document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
</array>

I have tried commenting out the CFBundleDocumentTypes section so there is just the UTI but that didn't help.

Can you see something wrong with the above? I'd greatly appreciate any help. So far I've spent longer trying to get this to work than I did on the Quick Look generator itself.

Regards,

Jo Meder
_______________________________________________

Cocoa-dev mailing list (Coco...@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev-garchive-98506%40googlegroups.com

This email sent to cocoa-dev-ga...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages