Help with UTIs and UIDocumentPickerViewController
Alex Zavatone
Is this the section where you are specifying the file type?
toggle quoted messageShow quoted text
<key>public.filename-extension</key> <array> <string>msug</string> </array> </dict> Does that look correct for a CSV file? Alex Zavatone
|
|
Alex Zavatone
FYI, you might want to heck out the expected file types in UTTypes.h
toggle quoted messageShow quoted text
It’s here. /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Headers/UTType.h Though this is for iOS, it might help. Scroll down to "What is a Uniform Type Identifier?" For a little backgorund info. Below is this info. Below that is this. Greyed Out Icon: The Solution //UIDocumentViewControllerlet utis = func getUTTypeCreateAllIdentifiers(for: "gpx") I hope this helps. Alex Zavatone
|
|
Sorry, Alex. As usual, publishing this allowed me to see my mistake.
First of all, the "msug" thing has to do with the output file, not the input file. Secondly, the problem was in the code -- I was specifying public.comma-delimited-values-text, but it SHOULD have been public.comma-separated-values-text. Sorry to waste your time. Rick
|
|