Type Method


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


+ (NSFileVersion *)currentVersionOfItemAtURL:(NSURL *)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.