I have a document-based app which uses its own file type, here's a snapshot of how I declare the UTI in Info.plist:
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>com.apple.package</string>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>MyApp Document</string>
<key>UTTypeIdentifier</key>
<string>com.my-app-company.my-app</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>myapp</string>
</array>
</dict>
</dict>
</array>
And here's how it's declared as document type
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>MyApp Document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>com.my-app-company.my-app</string>
</array>
<key>LSTypeIsPackage</key>
<true/>
</dict>
</array>
But after user created/modified any documents, they never show up in the Recents tab in the Files.app. Could anyone point out what's missing?
Thanks
-Robin