Problem A macOS app built in Swift (using XCode) shall show up in the "Open With" context menu for any file. But it does not show up at all.
Current status
The app has a document type for public.item defined.
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>Any file</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSItemContentTypes</key>
<array>
<string>public.item</string>
</array>
<key>NSDocumentClass</key>
<string>NSDocument</string>
</dict>
</array>
When I start the app (from XCode), no file has my app in the "Open With" menu. I've seen a lot of tutorials on how to add a custom type. But not any tutorial for a public type. Is this even possible?
Actual question:
How can I configure a Swift app to show up in the "Open With" menu for any file?
3
0
1.9k