1
votes

I want to implement standard Save As dialog in mac catalyst app. It should behave as in TextEdit - open a dialog, let user choose location and file format, and create file after clicking Save.

I have found UIDocumentPickerViewController , but I don't know:

  1. How to let user choose file format from the list of formats I offer
  2. How to initialize UIDocumentPickerViewController for export without already existing file. (I want to create file only after I know file format and location). I know about this contructor: init(urls: [URL], in: UIDocumentPickerMode) , which seems promising, but is deprecated.
1

1 Answers

-1
votes

Even if you import AppKit (which is allowed on the Mac side of a Mac Catalyst app,) the error message is clear:

nssavepanel catalyst error