Posted: Sun May 21, 2006 1:33 pm Post subject: UTExportedTypeDeclarations
Hi,
I have seen that the Info.plist file uses UTExportedTypeDeclarations to declare the UTIs for OpenOffice/NeoOffice files. This seems to be in contradiction to this site from apple.com: http://gemma.apple.com/documentation/Carbon/Conceptual/MDImporters/Concepts/WritingAnImp.html#//apple_ref/doc/uid/TP40001275-197081
If I understand this site correctly, NeoLight should be using UTImportedTypeDeclarations, since it's not directly associated with any application (it could be used with OpenOffice and/or NeoOffice). Only OpenOffice or NeoOffice should then use UTExportedTypeDeclarations.
I don't know if this actually has any effect on the system. But when reading about problems of OpenOffice/NeoOffice being installed parallely, I felt that maybe there might be a connection to this.
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
Posted: Sun May 21, 2006 1:44 pm Post subject:
The way the importer's Info.plist is declared it provides UTI identifiers for OOo formatted file extensions in the Info.plist of the importer; we don't do UTI types in the application proper. According to the documentation, when adding in UTI types to a standalone importer the ExportedTypeDelarations is the correct key. See Listing 3 of the aforementioned guide for the example of adding UTI type declarations to an importer's Info.plist file.
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
Posted: Sun May 21, 2006 2:08 pm Post subject:
I don't know what OOo is doing with their Info.plist but, in theory, if both applications provide the same UTI identifier for the extension there shouldn't be any issues. I really don't know what LaunchServices does if the same extension maps to multiple UTI types, but if it caches all the ones it sees then Spotlight indexing should be fine. The mapping of "open with" in the Finder and in LaunchServices is independent of UTI types, IIRC, and they're presently only required by Spotlight in order to search for an importer that can handle a specific file given the file's UTI type.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum