Can't get UTI to stick
Can't get UTI to stick
- Subject: Can't get UTI to stick
- From: Jo Meder <email@hidden>
- Date: Tue, 03 Apr 2012 13:02:31 +1200
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 (email@hidden)
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:
This email sent to email@hidden