- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The total number of units of work to be carried out.
Use this method to create the top level progress object returned by your own custom classes. The user of the returned progress object can add it to a progress tree using
You are responsible for updating the progress count of the created progress object. You can invoke this method on one thread and then message the returned
NSProgress on another thread. For example, you can capture the created progress instance in a block that you pass to
dispatch. In that block you can invoke methods like
resign, and set the
is properties as work is carried out.