Have you tried lsregister -dump?

> On Jul 1, 2016, at 9:18 AM, Matthew LeRoy <[email protected]> wrote:
> 
> Hi,
> 
> I’m having an issue where it appears that an Imported UTI for a certain file 
> extension declared by one application is taking precedence over an Exported 
> UTI for the same file extension declared by a second application. Everything 
> I’ve read in the docs and elsewhere states that Exported UTIs take precedence 
> over Imported UTIs, so I’m not sure what’s going on.
> 
> I’ve run `mdls [filename]` on an example file, and the kMDItemContentType and 
> associated attributes that come back match those declared by the Imported 
> UTI, not the Exported UTI. This causes problems because the two applications 
> declare different UTI strings (kMDItemContentType) for the same file 
> extension. Thus, when the application with the Exported UTI displays its Open 
> File dialog, the files of the type in question are grayed out/unselectable 
> because the dialog has been told (via [NSDocumentController 
> runModalOpenPanel:forTypes:]) to choose files with the UTI string declared by 
> the Exporting application, but Launch Services is assigning the other UTI 
> string (from the Importing application) to those files.
> 
> Can anyone shed some light on what might be happening, or steps to 
> troubleshoot/rectify the issue?
> 
> Thanks!
> Matt


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to