Type Method

currentVersionOfItemAtURL:

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

Declaration

+ (NSFileVersion *)currentVersionOfItemAtURL:(NSURL *)url;

Parameters

url

The URL of the file whose version object you want.

Return Value

The version object representing the current version of the file or nil if there is no such file.

See Also

Getting the Version of a File

+ otherVersionsOfItemAtURL:

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

+ versionOfItemAtURL:forPersistentIdentifier:

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

+ temporaryDirectoryURLForNewVersionOfItemAtURL:

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