Instance Method

presentedItemDidGainVersion:

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

Declaration

- (void)presentedItemDidGainVersion:(NSFileVersion *)version;

Parameters

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 file or file package. If the file has not been modified by your code, you might simply update to the new version quietly. However, if your application has its own changes, you might need to ask the user how to proceed.

See Also

Responding to Version Changes

- 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:didGainVersion:

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

- 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.