Post

Replies

Boosts

Views

Activity

URL when using ReferenceFileDocument
Hello, I'm trying to rewrite a NSDocument app using SwiftUI. The file on disk is practically a renamed Zip (files are pretty large). Using NSDocument it is easy cause I can get an URL and then read/write from/to that URL. Using ReferenceFileDocument apparently this is not possible cause I'm forced to use FileWrapper for reading/writing and I cannot load the whole file into memory cause it would be too big. Are there any solutions to use URLs with ReferenceFileDocument? Thanks, Giacomo
2
2
621
Feb ’22