Type Method

versionOfItemAtURL:forPersistentIdentifier:

Returns the version of the file that has the specified persistent ID.

Declaration

+ (NSFileVersion *)versionOfItemAtURL:(NSURL *)url forPersistentIdentifier:(id)persistentIdentifier;

Parameters

url

The URL of the file whose version you want.

persistentIdentifier

The persistent ID of the NSFileVersion object you want.

Return Value

The file version object with the specified ID or nil if no such version object exists.

See Also

Getting the Version of a File

+ currentVersionOfItemAtURL:

Returns the most recent version object for the file at the specified URL.

+ otherVersionsOfItemAtURL:

Returns all versions of the specified file except the current version.

+ temporaryDirectoryURLForNewVersionOfItemAtURL:

Creates and returns a temporary directory to use for saving the contents of the file.