• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't get UTI to stick
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get UTI to stick


  • Subject: Re: Can't get UTI to stick
  • From: Jo Meder <email@hidden>
  • Date: Sun, 08 Apr 2012 00:36:06 +1200

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 (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

  • Follow-Ups:
    • Re: Can't get UTI to stick
      • From: Fritz Anderson <email@hidden>
References: 
 >Can't get UTI to stick (From: Jo Meder <email@hidden>)
 >Re: Can't get UTI to stick (From: "C.W. Betts" <email@hidden>)

  • Prev by Date: Re: TextView cannot Use Selection for Find
  • Next by Date: Re: Can't get UTI to stick
  • Previous by thread: Re: Can't get UTI to stick
  • Next by thread: Re: Can't get UTI to stick
  • Index(es):
    • Date
    • Thread