Instance Property


A Boolean value that indicates the version object is not in conflict (true) or is in conflict (false).


var isResolved: Bool { get set }


When the system detects a conflict involving versions of a file, it sets this property to false to indicate an unresolved conflict. After you resolve the conflict, set this property to true to tell the system it is resolved; you must then remove any versions of the file that are no longer useful.

To remove an unused version of a file, call the remove() method. To remove all unused versions of a file, call the removeOtherVersionsOfItem(at:) method.

Resolving a conflict causes the file version object to be removed from any reports about conflicting versions, such as those returned by the unresolvedConflictVersionsOfItem(at:) method.

See Also

Handling Version Conflicts

var isConflict: Bool

A Boolean value indicating whether the contents of the version are in conflict with the contents of another version.

class func unresolvedConflictVersionsOfItem(at: URL) -> [NSFileVersion]?

Returns an array of version objects that are currently in conflict for the specified URL.