Instance Property

totalUnitCount

The total number of units of work tracked for the current progress.

Declaration

@property int64_t totalUnitCount;

Discussion

For an NSProgress with a kind of NSProgressKindFile, the unit of this property is bytes while the NSProgressFileTotalCountKey and NSProgressFileCompletedCountKey keys in the userInfo dictionary are used for the overall count of files.

For any other kind of NSProgress, the unit of measurement does not matter as long as it is consistent. The values may be reported to the user in the localizedDescription and localizedAdditionalDescription.

See Also

Reporting Progress

completedUnitCount

The number of units of work for the current job that have already been completed.

localizedDescription

A localized description of progress tracked by the receiver.

localizedAdditionalDescription

A more specific localized description of progress tracked by the receiver.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software