Hello,
I am working on a Mac OS app to manage .abc files; these are plain text files (you can open them with TextEdit) that can be used to build music scores.
I cannot set document the and UTI properly in my project. When I tap +O , in the open dialog, .abc files are greyed out, so cannot choose them.
I am not the owner/inventor of the .abc format, so I am setting an exported UTI. Here are details from my plist.
And:
I have been tweaking these settings a bit; I also tried using Exported UTI, but that was also to no avail.
Do you have any suggestions?
Thanks in advance,
Davide
I am working on a Mac OS app to manage .abc files; these are plain text files (you can open them with TextEdit) that can be used to build music scores.
I cannot set document the and UTI properly in my project. When I tap +O , in the open dialog, .abc files are greyed out, so cannot choose them.
I am not the owner/inventor of the .abc format, so I am setting an exported UTI. Here are details from my plist.
Code Block <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeIconSystemGenerated</key> <integer>1</integer> <key>CFBundleTypeName</key> <string>ABC Music File</string> <key>CFBundleTypeRole</key> <string>Editor</string> <key>LSHandlerRank</key> <string>Default</string> <key>LSItemContentTypes</key> <array> <string>com.davidebenini.abc</string> </array> <key>NSDocumentClass</key> <string>$(PRODUCT_MODULE_NAME).Document</string> </dict> </array>
And:
Code Block <key>UTImportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.data</string> </array> <key>UTTypeDescription</key> <string>ABC Music File</string> <key>UTTypeIcons</key> <dict/> <key>UTTypeIdentifier</key> <string>com.davidebenini.abc</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>abc</string> <string>ABC</string> </array> </dict> </dict> </array>
I have been tweaking these settings a bit; I also tried using Exported UTI, but that was also to no avail.
Do you have any suggestions?
Thanks in advance,
Davide
Ok, maybe I am getting somewhere.
I used a terminal command to get the actual UTI of my tunebook.abc file. I got this output:
So it looks like there is a public UTI for the .abc extension, but it is completely unrelated.
That is, the .abc extension is used both for abc music scores and for Alembic 3d scene.
Now, what is the most correct way to solve this ambiguity? That is, to tell Mac OS that abc files may be open ALSO with my app?
I used a terminal command to get the actual UTI of my tunebook.abc file. I got this output:
Code Block kMDItemContentType = "public.alembic" kMDItemContentTypeTree = ( "public.alembic", "public.3d-content", "public.content", "public.data", "public.item" ) kMDItemKind = "Scena 3D Alembic"
So it looks like there is a public UTI for the .abc extension, but it is completely unrelated.
That is, the .abc extension is used both for abc music scores and for Alembic 3d scene.
Now, what is the most correct way to solve this ambiguity? That is, to tell Mac OS that abc files may be open ALSO with my app?