Instance Method

readAdditionalContentFromURL:error:

Handles reading non-Core Data content in the additional content directory in the document’s file package.

Declaration

- (BOOL)readAdditionalContentFromURL:(NSURL *)absoluteURL error:(NSError * _Nullable *)error;

Parameters

absoluteURL

The URL for the additional content directory in the document’s file package.

error

Upon return, if a problem occurs, contains an error object that describes the problem.

Return Value

YES if the read operation is successful, otherwise NO.

Discussion

You override this method to read non-Core Data content from the additional content directory in the document’s file package.

If you implement this method, it is invoked automatically by readFromURL:error:.

There is no need to invoke super’s implementation.

Special Considerations

Additional content is not supported on iCloud.

See Also

Customizing Read and Write Operations

- additionalContentForURL:error:

Handles writing non-Core Data content to the additional content directory in the document’s file package.

- writeAdditionalContent:toURL:originalContentsURL:error:

Handles writing non-Core Data content to the document’s file package.