Finder doesn't recognize custom UTI

956 views Asked by At

I was trying to create a custom UTI for my non-document-based application. I have already been reading the Apple documents and several SO questions, but none seems to be addressing my issue.

I created a new UTI in XCode 4 ( "Target" --> "Exported UTIs" ), where I set the identifier in a reverse DNS order, a short description and a custom file extension that is not used by the system or anyone else.

This is how it looks in XCode 4 Unfortunately, Finder does not seem to recognize the UTI, meaning that it is not showing the icon and is not showing the description when I associate the file with my application manually.

Do I have to do something else to make this work? I am actually just saving these files in a binary format and attaching the custom file extension at the end of the path. When associated with the application manually, double-clicking a ".vsplf" file results in successfully opening the application and loading the settings from the file.

Any ideas are highly appreciated!

1

There are 1 answers

1
codingFriend1 On BEST ANSWER

Declaring the UTI is not sufficient. You also need to create a Document Type entry in your Info.plist. There is a good explanation with screenshots here:

How to register a custom non-document UTI / file type for OSX to recognize it?