Instance Method

presentedSubitemAtURL:didGainVersion:

Tells the delegate that the item inside the presented directory gained a new version.

Declaration

- (void)presentedSubitemAtURL:(NSURL *)url didGainVersion:(NSFileVersion *)version;

Parameters

url

The URL of the item inside the presented directory that gained a new version. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.

version

The file version object containing information about the new file version.

Discussion

Your delegate can use this method to determine how to incorporate data from the new version of the item. This might involve incorporating the version silently or asking the user about how to proceed.

See Also

Responding to Version Changes

- presentedItemDidGainVersion:

Tells the delegate that a new version of the file or file package was added.

- presentedItemDidLoseVersion:

Tells the delegate that a version of the file or file package was removed.

- presentedItemDidResolveConflictVersion:

Tells the delegate that some other entity resolved a version conflict for the presenter’s file or file package.

- presentedSubitemAtURL:didLoseVersion:

Tells the delegate that the item inside the presented directory lost an existing version.

- presentedSubitemAtURL:didResolveConflictVersion:

Tells the delegate that the item inside the presented directory had a version conflict resolved by an outside entity.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software