'In XCode 13, what fields in info.plist do I set to open files with a given suffix?
A template or an example of sample code is always more useful if one can subtract visible information from it rather than being forced to add invisible information (which you don't know) to it. As an example ...
I have created a brand new MacOS, document-based Swift project with Xcode 13.3. Xcode creates a new project from a template that includes an info.plist file, which looks like this when I select the Info entry in the project file list:
The template entitlements file has the
com.apple.security.files.user-selected.read-write
entry set to 1 (enabled).
I have tried creating entries in this info.plist file for "Document types", and also copying/pasting entries from another working document-based app's info.plist file, but the files with the suffix are still disabled in the Open File ... dialog, and I don't understand why or what I've missed doing.
I simply desire to open and read the data in a file with suffix (for example) ".why".
What are the exact steps one must do to declare the proper entry or entries in this brand new info.plist to enable my app to read files with a ".why" suffix from the app's Open File ... dialog?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

