Hi,

On 7/04/2012, at 10:55 AM, C.W. Betts wrote:

> Try making the UTI UTTypeConformsTo to also include public.data. Also, make 
> sure in the Spotlight importer that the app's UTI is being imported.

Thanks for the info. I did that and it didn't work. I went back and had a good 
close look at the docs and I think the problem must have been the underscore I 
had in the UTI, which is not allowed. Changing that to a hyphen and some other 
messing about (making sure old versions of the app weren't around, rebuilding 
Launch Services DB etc.) seems to have done the trick.

Although your suggestions didn't fix the exact problem they did at least 
stimulate me to look harder at the docs again so thanks regardless.

One interesting thing I found was that the exported UTI as displayed by dumping 
the Launch Services DB showed the UTI as all lower case although I did have 
upper case in it. My QL generator was set up to use the version with upper case 
but it didn't start working until I change all usage of the UTI (imported and 
exported declarations in various plists) to all lower case.

> If you do mdls on a .tgc file, what do you get?

I was getting a dynamic UTI along with correct information from the 
CFBundleDocumentTypes related fields.

Regards,

Jo 


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to