Returns a dictionary of file attributes to associate with the document file when writing or updating it.
- iOS 5.0+
- Mac Catalyst 13.0+
A file URL locating the document in the application sandbox.
A constant that indicates whether the document file is being written the first time or whether it is being overwritten. See
If you override this method and cannot write the document data for any reason, return by indirection an
NSErrorobject that encapsulates the reasons why you can’t. Otherwise, ignore this parameter.
A dictionary of file attributes—for example, level of file protection and creation date. See
NSFile for more information about file attributes.
The attributes are associated with a specific file type and save operation. You can override this method to return a dictionary of file attributes that are different than the default file attribute, which for new files is
save calls this method before executing asynchronous writing. It passes the dictionary into
write when it calls that method to write the document file.