Post

Replies

Boosts

Views

Activity

Writing to "secondary file" on iOS/iPadOS (not macOS)?
I have successfully used the primaryPresentedItemURL functionality of NSFilePresenter in macOS apps to, write to file.foo after the user used, for example, NSOpenPanel to open file.bar in a sandboxed application. This makes use of the primaryPresentedItemURL property belonging to NSFilePresenter (as well as NSIsRelatedItemType in Info.plist). I am struggling to do the same on an iOS/iPadOS app and not sure whether that can be done. primaryPresentedItemURL is not available outside of macOS. When I try to use the same approach as macOS (except for primaryPresentedItemURL of course), it works on the Simulator, but not on an actual device. Can this be done in some other way? My internet search has not revealed a solution. Thanks in advance!!
3
0
619
May ’23