Handles writing non-Core Data content to the document’s file package.
- iOS 5.0+
- Mac Catalyst 13.0+
An object that represents the additional content for the document.
This is the object returned from
The URL to which to write the additional content.
The current URL of the document that is being saved.
Upon return, if a problem occurs, contains an error object that describes the problem.
true if the write operation is successful, otherwise
You override this method to perform to write non-Core Data content in the additional content directory in the document’s file package. There are several issues to consider:
You should typically implement this method only if you have also implemented
Because this method is executed asynchronously, it is possible that the document’s state may be different from that at which the save operation was initiated. If you need to capture the document state at save time, you should do so in
If you implement this method, it is invoked automatically by
Contents(_: and Attributes: safely To: for:)
There is no need to invoke
Additional content is not supported on iCloud.